Files
specs/relay/circuit-v2.svg
Kevin 0c40ec8856 *: Set PlantUML background color to white (#419)
Night owls had a hard time reading the diagrams included in these specs.
A white background ensures that all text is readable in dark mode as well.
2022-05-29 16:17:52 +02:00

40 lines
9.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="571px" preserveAspectRatio="none" style="width:450px;height:571px;background:#FFFFFF;" version="1.1" viewBox="0 0 450 571" width="450px" zoomAndPan="magnify"><defs><filter height="300%" id="fvvdl64hw3or5" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="112" x2="112" y1="41.6094" y2="526.5313"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="277.5" x2="277.5" y1="41.6094" y2="526.5313"/><line style="stroke:#A80036;stroke-width:1.0;stroke-dasharray:5.0,5.0;" x1="424" x2="424" y1="41.6094" y2="526.5313"/><rect fill="#FEFECE" filter="url(#fvvdl64hw3or5)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="23" x="99" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="9" x="106" y="26.5332">A</text><rect fill="#FEFECE" filter="url(#fvvdl64hw3or5)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="23" x="99" y="525.5313"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="9" x="106" y="547.0645">A</text><rect fill="#FEFECE" filter="url(#fvvdl64hw3or5)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="24" x="263.5" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="10" x="270.5" y="26.5332">R</text><rect fill="#FEFECE" filter="url(#fvvdl64hw3or5)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="24" x="263.5" y="525.5313"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="10" x="270.5" y="547.0645">R</text><rect fill="#FEFECE" filter="url(#fvvdl64hw3or5)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="23" x="411" y="5"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="9" x="418" y="26.5332">B</text><rect fill="#FEFECE" filter="url(#fvvdl64hw3or5)" height="31.6094" style="stroke:#A80036;stroke-width:1.5;" width="23" x="411" y="525.5313"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="9" x="418" y="547.0645">B</text><rect fill="#EEEEEE" filter="url(#fvvdl64hw3or5)" height="3" style="stroke:#EEEEEE;stroke-width:1.0;" width="443" x="0" y="72.7852"/><line style="stroke:#000000;stroke-width:1.0;" x1="0" x2="443" y1="72.7852" y2="72.7852"/><line style="stroke:#000000;stroke-width:1.0;" x1="0" x2="443" y1="75.7852" y2="75.7852"/><rect fill="#EEEEEE" filter="url(#fvvdl64hw3or5)" height="24.3516" style="stroke:#000000;stroke-width:2.0;" width="93" x="175" y="61.6094"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacing" textLength="75" x="181" y="79.1045">Reservation</text><polygon fill="#A80036" points="265.5,114.3125,275.5,118.3125,265.5,122.3125,269.5,118.3125" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="112.5" x2="271.5" y1="118.3125" y2="118.3125"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="96" x="147" y="113.4561">[hop] RESERVE</text><polygon fill="#A80036" points="123.5,144.6641,113.5,148.6641,123.5,152.6641,119.5,148.6641" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="276.5" y1="148.6641" y2="148.6641"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="106" x="142" y="143.8076">[hop] STATUS:OK</text><polygon fill="#FBFB77" filter="url(#fvvdl64hw3or5)" points="15,161.6641,211,161.6641,221,173.6641,211,185.6641,15,185.6641,5,173.6641,15,161.6641" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="192" x="17" y="179.1592">Reservation timeout approaching.</text><polygon fill="#FBFB77" filter="url(#fvvdl64hw3or5)" points="86,196.0156,138,196.0156,148,208.0156,138,220.0156,86,220.0156,76,208.0156,86,196.0156" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="48" x="88" y="213.5107">Refresh.</text><polygon fill="#A80036" points="265.5,243.7188,275.5,247.7188,265.5,251.7188,269.5,247.7188" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="112.5" x2="271.5" y1="247.7188" y2="247.7188"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="96" x="147" y="242.8623">[hop] RESERVE</text><polygon fill="#A80036" points="123.5,274.0703,113.5,278.0703,123.5,282.0703,119.5,278.0703" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="276.5" y1="278.0703" y2="278.0703"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="106" x="142" y="273.2139">[hop] STATUS:OK</text><polygon fill="#FBFB77" filter="url(#fvvdl64hw3or5)" points="104,291.0703,120,291.0703,130,303.0703,120,315.0703,104,315.0703,94,303.0703,104,291.0703" style="stroke:#A80036;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="12" x="106" y="308.5654">...</text><rect fill="#EEEEEE" filter="url(#fvvdl64hw3or5)" height="3" style="stroke:#EEEEEE;stroke-width:1.0;" width="443" x="0" y="341.5977"/><line style="stroke:#000000;stroke-width:1.0;" x1="0" x2="443" y1="341.5977" y2="341.5977"/><line style="stroke:#000000;stroke-width:1.0;" x1="0" x2="443" y1="344.5977" y2="344.5977"/><rect fill="#EEEEEE" filter="url(#fvvdl64hw3or5)" height="24.3516" style="stroke:#000000;stroke-width:2.0;" width="151" x="146" y="330.4219"/><text fill="#000000" font-family="sans-serif" font-size="13" font-weight="bold" lengthAdjust="spacing" textLength="133" x="152" y="347.917">Circuit Establishment</text><polygon fill="#A80036" points="288.5,383.125,278.5,387.125,288.5,391.125,284.5,387.125" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="282.5" x2="423.5" y1="387.125" y2="387.125"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="123" x="289.5" y="382.2686">[hop] CONNECT to A</text><polygon fill="#A80036" points="123.5,413.4766,113.5,417.4766,123.5,421.4766,119.5,417.4766" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="276.5" y1="417.4766" y2="417.4766"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="141" x="124.5" y="412.6201">[stop] CONNECT from B</text><polygon fill="#A80036" points="265.5,443.8281,275.5,447.8281,265.5,451.8281,269.5,447.8281" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="112.5" x2="271.5" y1="447.8281" y2="447.8281"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="110" x="140" y="442.9717">[stop] STATUS:OK</text><polygon fill="#A80036" points="412.5,474.1797,422.5,478.1797,412.5,482.1797,416.5,478.1797" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="277.5" x2="418.5" y1="478.1797" y2="478.1797"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="106" x="298" y="473.3232">[hop] STATUS:OK</text><polygon fill="#A80036" points="123.5,504.5313,113.5,508.5313,123.5,512.5313,119.5,508.5313" style="stroke:#A80036;stroke-width:1.0;"/><polygon fill="#A80036" points="412.5,504.5313,422.5,508.5313,412.5,512.5313,416.5,508.5313" style="stroke:#A80036;stroke-width:1.0;"/><line style="stroke:#A80036;stroke-width:1.0;" x1="117.5" x2="418.5" y1="508.5313" y2="508.5313"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="65" x="236" y="503.6748">Connection</text><!--MD5=[84e33454e383ce8da7bbb6ee7b1fb87e]
@startuml
skinparam backgroundColor white
participant A
participant R
participant B
skinparam sequenceMessageAlign center
== Reservation ==
A -> R: [hop] RESERVE
R -> A: [hop] STATUS:OK
hnote over A: Reservation timeout approaching.
hnote over A: Refresh.
A -> R: [hop] RESERVE
R -> A: [hop] STATUS:OK
hnote over A: ...
== Circuit Establishment ==
B -> R: [hop] CONNECT to A
R -> A: [stop] CONNECT from B
A -> R: [stop] STATUS:OK
R -> B: [hop] STATUS:OK
B <-> A: Connection
@enduml
PlantUML version 1.2022.0(Tue Jan 11 17:16:42 CET 2022)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Default Encoding: Cp1252
Language: de
Country: DE
--></g></svg>