From 6bfa7a8d12e7405b7ae212ef2a9180448cc86199 Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Tue, 14 Apr 2020 22:22:37 +0200 Subject: [PATCH] Fix mistake in class diagram --- doc/download_sequence_diagram.drawio | 2 +- doc/download_sequence_diagram.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/download_sequence_diagram.drawio b/doc/download_sequence_diagram.drawio index 33e679b..2014841 100644 --- a/doc/download_sequence_diagram.drawio +++ b/doc/download_sequence_diagram.drawio @@ -1 +1 @@ -7Vxbc5s4FP41nkkf0uFiY/vRcZwms9kmG7uX7ZsMstEEEBWQxPvrVzdukm+hxkmn7kwTOMCR0Pl07qRjj8OXTwTE/t/Yg0HHMryXjn3ZsayBM6A/GWElCF3HEYQlQZ4gmSVhiv6DkmhIaoY8mNRuTDEOUhTXiS6OIuimNRogBD/Xb1vgoD5qDJZQI0xdEOjUb8hLfUk1DaO8cA3R0pdDD3rywhy4j0uCs0iO17HsBf8nLocg5yXvT3zg4ecKyZ507DHBOBVH4csYBmxp82UTz11tuFrMm8Ao3eeB/hzMgel2567VX3TnxrktODyBIJNrMYrjALkgRTiy5KTTVb5QdP4xO8zC4BYtYIAienYRQ4JCmEJCrwSSfF/SLp59lMJpDFz26DNFEKX5aRjQM5MeUqmmgD5CivMgAHGC5nxUg1IIdDOSoCf4ABMBHkbFWcpGGheg4LcyYUBPsirW2+B8Q+TK4wDMYXBRSG+MA8yGjzB/oSQl+LGAAmO0oHO8AiEKGMK/QuKBCEiyhLNJhXkBArSM6IlL5cFfXReQlNkTJCl8qZCkwD5BTJeNrOgt8qqVo3BV3zTPFaTmt/gVkA4Hkgjk7lgWrEuE0AMJkj0BM9gGGPMEmHcAGLshXroHwMvsojtf3nx1vNE/328n7iC9+TY6N7dhxj5h5jCY0QCyBkabMTNoBppBvy3QWBpoZoQuJX3hE17eHi+9XkMl47SFF92TubyZju++Th4o9WHyz5fJdHa2QAE0P2gIqsidrQrVTMFILtocpyk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vW7sjHNKz2aYKfg+yaOl3KUMNv7fyxit+GtpZYCslOt7Q0SmOsY4RgByXP77+w/9shr2Mp7QyOgbz/fEx3XhB/EZaKQ++Zx4ClXuiX7nhThSb3zmyDOgVNdrHkt49QvKmzbr6jIo8Gzro5TQ2cFXOab94IqqyZvV1s82DgfGvSweRv9MxDZsxjXN6IyB74iAbDPJuQhtPsvgsauXJ7hgRGLOh0eVRH4IfqaQKlBw72wyTOMx55BYuiGoh9pSI+R6yKg1j7PoidJYyyZwh0IIWXSDnIHIRIHlTs05fH6+GUb0uTXmbjPtZzvN/K4/YU2ht2rx033k+jsQLuy+a80PfhU4sBn40ot2KQ+DNROGQIm61jDq1IVCxn7N3LGuSzi3ey8+J0ZFZZTvuH2qWlKWq4hJDuyKwEIfuXIWQfG0In+sapbbRLZr209LXiQEjUtn7W/VTEGHzs7FZ1KI6gJE4H1b50elWGUh3a5nNStp5f3eBRp9wxFz7Q4Kl5vOLutJS5lzl6F8bsI0yR7neWIFiIPRySgXgoyraUlLaMsLsCVhmp6OrFJhXp4IuFkrOb3/HNSPbB+d5NIG938/Q0/6saAqX5Xy6xx/8C \ No newline at end of file diff --git a/doc/download_sequence_diagram.svg b/doc/download_sequence_diagram.svg index 3d39924..a67f522 100644 --- a/doc/download_sequence_diagram.svg +++ b/doc/download_sequence_diagram.svg @@ -1,3 +1,3 @@ -
Application2
Application2
Application1
Application1
Application3
Application3
Tracker
Tracker
DISCOVER REQUEST(file1)
DISCOVER REQUES...
DISCOVER RESPONSE (file1, Application2, Application3)
DISCOVER RESPON...
Applications are all already registered successfully into tracker.
Lets start a download of file1 from Application1.
Applications are all already registered successfully into tracker....
SIZE REQUEST(file1)
SIZE REQUEST(fi...
SIZE RESPONSE(file1, sizeof(file1))
SIZE RESPONSE(f...
HASH REQUEST(file1, "SHA512")
HASH REQUEST(fi...
HASH RESPONSE(file1, sha512(file1))
HASH RESPONSE(f...
HASH REQUEST(file1, "SHA512")
HASH REQUEST(fi...
HASH RESPONSE(file1, sha512(file1))
HASH RESPONSE(f...
Application1 is requesting hashsum from each application to ensure applications have
the same file, but an improvement could be to register this sum in the tracker, and ask only the tracker once instead of asking each application.
Application1 is requesting hashsum from each application to ensure applications have...
LOAD PART(0, 512, file1)
LOAD PART(0, 51...
RATIO REQUEST(Application1)
RATIO REQUE...
RATIO RESPONSE(Application1, upratio, downratio)
RATIO RESPONSE(...
Application2 will cache the ratio a few seconds, to avoid asking the tracker
on each LOAD PART.
Here, based on this ratio, Application2 randomly decide to send a DENY to punish Application1. This filepart will be asked again later, and possibly to an other application.
Application2 will cache the ratio a few seconds, to avoid asking the tracker...
DENY(file1, 0)
DENY(file1, 0)
LOAD PART(1024, 512, file1)
LOAD PART(1024,...
RATIO REQUEST(Application1)
RATIO REQUEST(A...
RATIO RESPONSE(Application1, upratio, downratio)
RATIO RESPONSE(...
LOAD RESPONSE(file1, 1024, content(file1,1024, 512))
LOAD RESPONSE(f...
Application1 asks for all the missing fileparts (not represented here).
Application1 compute the hashsum locally and if it matches the received one, send
UPDATE RATIO to tracker.
Application1 asks for all the missing fileparts (not represented here)....
UPDATE RATIO(Application2, <number of bytes sent by Application2>)
UPDATE RATIO(Ap...
UPDATE RATIO(Application3, <number of bytes sent by Application3>)
UPDATE RATIO(Ap...
The download is over. Application1will detect a change in filelist an register the new
file to the tracker.
The download is over. Application1will detect a change in filelist an register the new...
Viewer does not support full SVG 1.1
\ No newline at end of file +
Application2
Application2
Application1
Application1
Application3
Application3
Tracker
Tracker
DISCOVER REQUEST(file1)
DISCOVER REQUES...
DISCOVER RESPONSE (file1, Application2, Application3)
DISCOVER RESPON...
Applications are all already registered successfully into tracker.
Lets start a download of file1 from Application1.
Applications are all already registered successfully into tracker....
SIZE REQUEST(file1)
SIZE REQUEST(fi...
SIZE RESPONSE(file1, sizeof(file1))
SIZE RESPONSE(f...
HASH REQUEST(file1, "SHA512")
HASH REQUEST(fi...
HASH RESPONSE(file1, sha512(file1))
HASH RESPONSE(f...
HASH REQUEST(file1, "SHA512")
HASH REQUEST(fi...
HASH RESPONSE(file1, sha512(file1))
HASH RESPONSE(f...
Application1 is requesting hashsum from each application to ensure applications have
the same file, but an improvement could be to register this sum in the tracker, and ask only the tracker once instead of asking each application.
Application1 is requesting hashsum from each application to ensure applications have...
LOAD PART(0, 512, file1)
LOAD PART(0, 51...
RATIO REQUEST(Application1)
RATIO REQUE...
RATIO RESPONSE(Application1, upratio, downratio)
RATIO RESPONSE(...
Application2 will cache the ratio a few seconds, to avoid asking the tracker
on each LOAD PART.
Here, based on this ratio, Application2 randomly decide to send a DENY to punish Application1. This filepart will be asked again later, and possibly to an other application.
Application2 will cache the ratio a few seconds, to avoid asking the tracker...
DENY(file1, 0)
DENY(file1, 0)
LOAD PART(1024, 512, file1)
LOAD PART(1024,...
RATIO REQUEST(Application1)
RATIO REQUEST(A...
RATIO RESPONSE(Application1, upratio, downratio)
RATIO RESPONSE(...
LOAD RESPONSE(file1, 1024, content(file1,1024, 512))
LOAD RESPONSE(f...
Application1 asks for all the missing fileparts (not represented here).
Application1 compute the hashsum locally and if it matches the received one, send
UPDATE RATIO to tracker.
Application1 asks for all the missing fileparts (not represented here)....
UPDATE RATIO(Application2, <number of bytes sent by Application2>)
UPDATE RATIO(Ap...
UPDATE RATIO(Application3, <number of bytes sent by Application3>)
UPDATE RATIO(Ap...
The download is over. Application1will detect a change in filelist an register the new
file to the tracker.
The download is over. Application1will detect a change in filelist an register the new...
Viewer does not support full SVG 1.1
\ No newline at end of file