From 89e35ec8a5410ae1808b056388b5e2450f9e3f01 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Fri, 18 Nov 2016 16:01:53 +0100 Subject: [PATCH] [ntp] add documentation about how NTP clients and servers synchonize time with external servers This was lost during merge of barclamp-ntp into crowbar-core --- doc/ntp.dot | 18 +++++++++ doc/ntp.svg | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 doc/ntp.dot create mode 100644 doc/ntp.svg diff --git a/doc/ntp.dot b/doc/ntp.dot new file mode 100644 index 0000000000..1aa3b5a28c --- /dev/null +++ b/doc/ntp.dot @@ -0,0 +1,18 @@ +# NTP synchronization example with +# 2 external servers (E), 2 cloud servers (S) and 3 clients (C) +# render this graph with +# dot -Tsvg doc/ntp.dot -o doc/ntp.svg + +digraph G { + {E1 E2} -> {S1 S2} + + subgraph servers { + rank="same"; + S1 -> S2 -> S1 + } + + {S1 S2} -> {C1 C2 C3} + + E1[shape=square] + E2[shape=square] +} diff --git a/doc/ntp.svg b/doc/ntp.svg new file mode 100644 index 0000000000..a4006b1505 --- /dev/null +++ b/doc/ntp.svg @@ -0,0 +1,108 @@ + + + + + + +G + + +E1 + +E1 + + +S1 + +S1 + + +E1->S1 + + + + +S2 + +S2 + + +E1->S2 + + + + +E2 + +E2 + + +E2->S1 + + + + +E2->S2 + + + + +S1->S2 + + + + +C1 + +C1 + + +S1->C1 + + + + +C2 + +C2 + + +S1->C2 + + + + +C3 + +C3 + + +S1->C3 + + + + +S2->S1 + + + + +S2->C1 + + + + +S2->C2 + + + + +S2->C3 + + + + +