Archived
3
0

remoted diagrams

This commit is contained in:
Philippe PITTOLI 2017-09-03 15:11:16 +02:00
parent b5d400ec10
commit 42658c5e5f
7 changed files with 78 additions and 23 deletions

1
diags/.gitignore vendored
View File

@ -1 +1,2 @@
*.png
*.pdf

View File

@ -22,22 +22,22 @@ do
fi
done
# PKTDIAG=pktdiag
# for i in *\.$PKTDIAG
# do
# PNG=$(echo ${i} | sed "s/$PKTDIAG$/pdf/")
#
# if [ ! -f ${PNG} ] || [ $(stat -c "%X" ${PNG}) -lt $(stat -c "%X" ${i}) ]
# then
#
# echo seqdiag ${i}
# packetdiag -Tpdf -a -f $FONT ${i}
#
# echo touch ${PNG}
# touch ${PNG}
# fi
# done
#
PKTDIAG=pktdiag
for i in *\.$PKTDIAG
do
PNG=$(echo ${i} | sed "s/$PKTDIAG$/pdf/")
if [ ! -f ${PNG} ] || [ $(stat -c "%X" ${PNG}) -lt $(stat -c "%X" ${i}) ]
then
echo seqdiag ${i}
packetdiag -Tpdf -a -f $FONT ${i}
echo touch ${PNG}
touch ${PNG}
fi
done
# GDOT="gviz-dot"
# for i in *\.$GDOT
# do

View File

@ -1,7 +1,8 @@
diagram {
edge_length = 300;
default_fontsize = 13; // default value is 11
span_height = 10; // default value is 40
default_fontsize = 16; // default value is 11
span_height = 8; // default value is 40
node_height = 60; // default value is 40
activation = none;
// Numbering edges automaticaly
@ -11,12 +12,26 @@ diagram {
default_note_color = lightblue;
client; remoted; transportd; service;
client [label = "client\nlocal"];
remoted [label = "remoted\nlocal"];
transportd [label = "transportd\n(ex: tcpd)\nlocal"];
transportd2 [label = "transportd\n(ex: tcpd)\nremote"];
remoted2 [label = "remoted\nremote"];
service [label = "service\nremote"];
client -> remoted [label = "service-name"];
client -> remoted [label = "REMOTED_VAR=URI"];
client -> remoted [label = "END"];
remoted -> transportd [label = "connect URI"];
client -> remoted [label = "service-name (ex: pongd)"];
client -> remoted [label = "REMOTED_VAR=URI
ex: tcp://user:password@example.com:9000", fontsize=13];
client -> remoted [label = "END (mark the end of the options)"
, rightnote = "Remoted: authenticates, authorizes, determines the right transport daemon and
applies forwarding rules", fontsize=13];
remoted -> transportd [label = "connect URI + service name"];
transportd -> transportd2 [label = "connection init
service name + URI"];
transportd2 -> remoted2 [label = "connection request
service name + URI"];
remoted2 -> transportd2 [label = "authorization (yes|no)"];
transportd2 -> transportd [label = "connection established"];
transportd -> remoted [label = "socket"];
remoted -> client [label = "socket"];
client -> service [label = "connection"];

Binary file not shown.

13
diags/remoted_end.pktdiag Normal file
View File

@ -0,0 +1,13 @@
packetdiag {
colwidth = 64
node_height = 60
node_width = 15
default_fontsize = 16; // default value is 11
// basic header (type then length)
0-7: type\n1 byte [color = "#CCEECC"]
8-23: length\n2 bytes [color = "#CCEECC"]
// payload
24-63: END\n3 bytes [color = "#CCCCEE"]
}

View File

@ -0,0 +1,13 @@
packetdiag {
colwidth = 64
node_height = 60
node_width = 15
default_fontsize = 16; // default value is 11
// basic header (type then length)
0-7: type\n1 byte [color = "#CCEECC"]
8-23: length\n2 bytes [color = "#CCEECC"]
// payload
24-63: service name\nn bytes [color = "#CCCCEE"]
}

View File

@ -0,0 +1,13 @@
packetdiag {
colwidth = 64
node_height = 60
node_width = 15
default_fontsize = 16; // default value is 11
// basic header (type then length)
0-7: type\n1 byte [color = "#CCEECC"]
8-23: length\n2 bytes [color = "#CCEECC"]
// payload
24-63: environment variable (one per packet)\nex: REMOTED_URI=tcp://user:pass@host.example.com:9000\nn bytes [color = "#CCCCEE"]
}