-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added content to produce a proper release
- Loading branch information
snakejerusalem
committed
Apr 16, 2015
1 parent
8e6cdd5
commit c574fca
Showing
850 changed files
with
133,354 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
BFT-SMaRt v1.0-beta | ||
---------- | ||
|
||
This package contains the BFT-SMaRt source code (src/), binary file (bin/), libraries needed (lib/), documentation (doc/), and configuration files (config/). | ||
BFT-SMaRt requires the Java Runtime Environment version 1.7 or later. | ||
|
||
------------ Important notice for developers ------------- | ||
|
||
This beta version of BFT-SMaRt offers the most stable execution via the class bftsmart.tom.server.defaultservices.DefaultRecoverable under Byzantine faults. Applications can also be implemente using bftsmart.tom.server.defaultservices.DefaultSingleRecoverable and bftsmart.tom.server.defaultservices.durability.DurabilityCoordinator, but they are not as stable as DefaultRecoverable. In future versions these classes will be properly tested and fixed. | ||
|
||
------------- How to run BFT-SMaRt ----------------------- | ||
|
||
To run any demonstration you first need to configure BFT-SMaRt to define the protocol behavior and the location of each replica. | ||
|
||
1.) The servers must be specified in the configuration file (see config/hosts.config). An example: | ||
|
||
#server id, address and port (the ids from 0 to n-1 are the service replicas) | ||
0 127.0.0.1 11000 | ||
1 127.0.0.1 11010 | ||
2 127.0.0.1 11020 | ||
3 127.0.0.1 11030 | ||
|
||
2.) The system configurations also have to be specified (see config/system.config). Most of the parameters are self explanatory. | ||
|
||
You can run the counter demonstration by executing the following commands, from within the main folder: | ||
|
||
#Start the servers (4 replicas, to tolerate 1 fault) | ||
./smartrun.sh bftsmart.demo.counter.CounterServer 0 | ||
./smartrun.sh bftsmart.demo.counter.CounterServer 1 | ||
./smartrun.sh bftsmart.demo.counter.CounterServer 2 | ||
./smartrun.sh bftsmart.demo.counter.CounterServer 3 | ||
|
||
#Start a client | ||
|
||
./smartrun.sh bftsmart.demo.counter.CounterClient 1001 <increment> [<number of operations>] | ||
|
||
If <increment> equals 0 the request will be read-only. Default <number of operations> equals 1000. | ||
|
||
You can use the "runsmart.bat" script in Windows, and the "runsmart.sh" script in Linux. | ||
When running the script in Linux it is necessary to set the permissions to execute the script with the command "chmod +x runsmart.sh". | ||
These scripts can easily be adapted to run other demos. | ||
|
||
Other available demos: | ||
|
||
- Random demo. You can run it by using the RandomServer and RandomClient classes located in the package bftsmart.demo.random. | ||
- BFTMap. A Table of hash maps where tables can be created and key value pair added to it. | ||
The server is bftmap.demo.bftmap.BFTMapServer and the clients are BFTMapClient for incremental inserts or BFTMapInteractiveClient for a command line client. Parameters to run the BFTMap demo are displayed when attempts to start the servers and clients are made without parameters. | ||
- YCSB. You can run a Yahoo! Cloud Serving Benchmark with BFT-SMaRt by executing the startReplicaYCSB.sh and ycsbClient.sh | ||
scripts located in the main folder. | ||
|
||
------------- Additional Information ------------------ | ||
|
||
BFT-SMaRt offers two state transfer protocols. The first is a basic protocol that can be used by extending the class bftsmart.tom.server.defaultservices.DefaultRecoverable that logs requests into memory and periodically takes snapshots of the application state. | ||
|
||
The second, more advanced protocol can be used by extending the class bftsmart.tom.server.defaultservices.durability.DurabilityCoordinator. This protocol stores its logs to disk. To mitigate the latency of writing to disk, such tasks is done in batches and in parallel with the requests' execution. Additionally, the snapshots are taken at different points of the execution in different replicas. | ||
|
||
The library also implements a reconfiguration protocol, that you can use to add/remove replicas from the initial group. You can add/remove replicas on-the-fly by executing the following commands: | ||
|
||
./smartrun.sh bftsmart.reconfiguration.VMServices <smart id> <ip address> <port> (to add a replica to the group) | ||
./smartrun.sh bftsmart.reconfiguration.VMServices <smart id> (to remove a replica from the group) | ||
|
||
You can run BFT-SMaRt in crash-faults only mode by setting the "system.bft" parameter in the configuration file to "false". This mode requires less replicas to execute, but will not withstand full Byzantine behavior from compromised replicas. | ||
|
||
If you need to generate public/private keys for more replicas or clients, you can use the following command: | ||
|
||
./smartrun.sh bftsmart.tom.util.RSAKeyPairGenerator <id> | ||
|
||
Keys are stored in the config/keys folder. The command above creates key pairs both for clients and replicas. | ||
|
||
Finally, if you are interested in learning more about BFT-SMaRt, you can read: | ||
|
||
- The technical report at the handler: http://hdl.handle.net/10455/6897 | ||
- The paper about its state machine protocol published in EDCC 2012: http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6214759 | ||
- The paper about its advanced state transfer protocol published in Usenix 2013: https://www.usenix.org/conference/atc13/technical-sessions/presentation/bessani | ||
- The tool description published in DSN 2014: http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6903593&tag=1 | ||
|
||
Feel free to contact us if you have any questions! |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+420 Bytes
bin/bftsmart/communication/client/CommunicationSystemClientSide.class
Binary file not shown.
Binary file added
BIN
+848 Bytes
bin/bftsmart/communication/client/CommunicationSystemClientSideFactory.class
Binary file not shown.
Binary file added
BIN
+314 Bytes
bin/bftsmart/communication/client/CommunicationSystemServerSide.class
Binary file not shown.
Binary file added
BIN
+820 Bytes
bin/bftsmart/communication/client/CommunicationSystemServerSideFactory.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.26 KB
bin/bftsmart/communication/client/netty/NettyClientPipelineFactory.class
Binary file not shown.
Binary file added
BIN
+2.16 KB
...ftsmart/communication/client/netty/NettyClientServerCommunicationSystemClientSide$1.class
Binary file not shown.
Binary file added
BIN
+1.09 KB
...ftsmart/communication/client/netty/NettyClientServerCommunicationSystemClientSide$2.class
Binary file not shown.
Binary file added
BIN
+15.2 KB
bin/bftsmart/communication/client/netty/NettyClientServerCommunicationSystemClientSide.class
Binary file not shown.
Binary file added
BIN
+2.14 KB
...ftsmart/communication/client/netty/NettyClientServerCommunicationSystemServerSide$1.class
Binary file not shown.
Binary file added
BIN
+11 KB
bin/bftsmart/communication/client/netty/NettyClientServerCommunicationSystemServerSide.class
Binary file not shown.
Binary file added
BIN
+1.5 KB
bin/bftsmart/communication/client/netty/NettyClientServerSession.class
Binary file not shown.
Binary file added
BIN
+2.28 KB
bin/bftsmart/communication/client/netty/NettyServerPipelineFactory.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.31 KB
bin/bftsmart/communication/server/ServerConnection$SenderThread.class
Binary file not shown.
Binary file added
BIN
+3.82 KB
bin/bftsmart/communication/server/ServerConnection$TTPReceiverThread.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+798 Bytes
bin/bftsmart/communication/server/ServersCommunicationLayer$PendingConnection.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+699 Bytes
bin/bftsmart/consensus/executionmanager/LeaderModule$ConsInfo.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.9 KB
bin/bftsmart/demo/microbenchmarks/ThroughputLatencyClient$Client.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.38 KB
bin/bftsmart/statemanagement/strategy/durability/CSTRequestFGT1.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.84 KB
bin/bftsmart/statemanagement/strategy/durability/DurableStateManager$1.class
Binary file not shown.
Binary file added
BIN
+14.4 KB
bin/bftsmart/statemanagement/strategy/durability/DurableStateManager.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.15 KB
bin/bftsmart/statemanagement/strategy/durability/StateSenderServer.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.72 KB
bin/bftsmart/tom/server/defaultservices/DefaultApplicationState.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.71 KB
bin/bftsmart/tom/server/defaultservices/DefaultSingleRecoverable.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.32 KB
bin/bftsmart/tom/server/defaultservices/FileRecoverer$FileListFilter.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.3 KB
bin/bftsmart/tom/server/defaultservices/durability/DurabilityCoordinator.class
Binary file not shown.
Binary file added
BIN
+10.3 KB
bin/bftsmart/tom/server/defaultservices/durability/DurableStateLog.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#server id, address and port (the ids from 0 to n-1 are the service replicas) | ||
0 127.0.0.1 11000 | ||
1 127.0.0.1 11010 | ||
2 127.0.0.1 11020 | ||
3 127.0.0.1 11030 | ||
4 127.0.0.1 11040 | ||
7001 127.0.0.1 11100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALap7qHwIH9IvBJ7UO6IhkR3cG/6qjP0QHFayB81cSf+UAnKs9cRNA06Qun7RGcTwR/lYUwKID5qacDAyG16x/coeVzUnQwaqe4TvaWCp/NBcXhwdRDOmFI2zP635Aa+JHLU1IdYVr1S9T+g+coTgV7ghMmESMpXg1s2ePt9lFnxAgMBAAECgYBbJ6hXld6Rxnlce7+imezvQ++PYjcH4E88gkI2GNRUUfwdNtPSctpX84gq/eJf0iLhSPXqHW+D1lTaBRrAT7Jz0deV3cFeQ50INbJ/pIYEkFqlyXvwQkv/TBkPsIhD75si7Um8/ORrkeVnm/DUU7m18DlN0ajIyt1H5X3aUwygdQJBAPod48fCSyqOfSX753UX/KNh4jyRY4RqSoAMauReQ6erSjsfew8B4Zanm8bTigtsf3l7lv7+weK69nRo1MtqfVMCQQC69d2frIwoKnCqKw81dkfNRmbmWA8V18IQR+zeKRaJzccu6SdhZ+Qt05DCD4ROk35la+sGLELmQBgm0D2bot8rAkBQ3bsYidwNnVYfIsvZ0vCOzoX7+THIzSjbL6ibv1J2cm4koXADESOjtvsplJlsSh8I4wmV1j5PlQ074+zw+7QbAkA7dPl4UD16gJS36V262NTY2WzcEGErxyP2XYlc1aBPTtvrdUaK2aldUY0Vyi1/d7SYuItTuTvFUdjcbxlIp7FlAkEA6aiBHHQSm0TojAKto+/0ifRcwPeGBzIxHVjOMEyY5gUKfP60fa6EY0X3I29jMM6oqjguf796rKG0UIGv474WAA== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIKE7IyzQK11ojrCgmlRCraFH3SJSEdLokgrcXVF76jIQB2RM74fRJ6hs57I77TBtkkBxXoQbciCs1z9PewVHtloswmgQ1E4V4U5GC1jwZNjdWikXXJ87XaTtMAK/U6rJQOTrR2vp/Lu21JfxQkrZGffkDd711kfRvk7qMv7ca57AgMBAAECgYA/QdMv4hS/vRqSZgE0r92EVoLHRV3th/+wALYtg2bDI8LHUb+FLrxgMbjPhU2ACr6hJaWjImFC4+2wbOBdEmNvg+9i7KIO2b9KFob1sXPPy2oLnbT3QX4H3oyw4u7wyATAY9Z0j0ZUVRxT1ak48moQvi/MPRtyxujfT+TpbRkBeQJBAMGc4HD0gX/c+UdlXqBYmwVsKlxEZW8EOdG6OJ4/2TXbHd53dhHo6UQ4m7crYF7Boq3nFVuyOQyCW41A8fLvH30CQQCsk3U+c8DNv0HBktt2SnRGdGmrQGYR6AiVKYeUt7C8zlrkGiTRUCO6YQDXEFuM1c+hFvF0L5qT5zsEMwSQbNdXAkB0aw8t/Get6cJeot6OThkQ3qRuDJZtdb4KlQ4cYcoLLzE7pttxE3rIEb3YGxX8hDR8mvnlxDm3gt7oBcg2SoDFAkBMwRi4OgtaduHsEkEBj4O/gi8tN2suM6D9lobyofA9SRorsWUGozoAvvv8qw3MyZua7fVd035Qodshtv8krQPpAkEArLesQuYOm89RRV5Vtl6f8zqzQOEW2fagB0xFfZgDC4m3sQDlwXrhN+77TYOm/EDe7kdZqZiCjcXdkQJTuTm/tw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.