DOC: muxes: add a diagram of the exchanges between muxes and outer world

Since the muxes API is far from being obvious, let's show a stream being
forwarded between two sides through muxes with their buffers and the
transport layers. The diagram is provided in .fig, .svg, .png, and .pdf.
This commit is contained in:
Willy Tarreau 2021-02-24 09:07:52 +01:00
parent ec0a604f27
commit 61d095ed37
4 changed files with 1316 additions and 0 deletions

402
doc/internals/muxes.fig Normal file
View File

@ -0,0 +1,402 @@
#FIG 3.2 Produced by xfig version 3.2.7b
Landscape
Center
Inches
Letter
100.00
Single
-1
1200 2
0 32 #bbf2e2
0 33 #a7ceb3
0 34 #dae8fc
0 35 #458dba
0 36 #ffe6cc
0 37 #e9b000
0 38 #1a1a1a
0 39 #8e8e8e
0 40 #ffc1e7
6 4200 8700 4800 9825
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
4261 9751 4261 8751 4761 8751 4761 9751
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
4761 9751 4761 8751 4261 8751 4261 9751 4761 9751
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
4261 8850 4761 8850
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
4261 8925 4761 8925
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
4261 9000 4761 9000
-6
6 1425 3525 2025 4650
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
1486 4576 1486 3576 1986 3576 1986 4576
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
1986 4576 1986 3576 1486 3576 1486 4576 1986 4576
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
1486 3675 1986 3675
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
1486 3750 1986 3750
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
1486 3825 1986 3825
-6
6 3225 3525 3825 4650
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
3286 4576 3286 3576 3786 3576 3786 4576
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
3786 4576 3786 3576 3286 3576 3286 4576 3786 4576
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
3286 3675 3786 3675
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
3286 3750 3786 3750
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
3286 3825 3786 3825
-6
6 5025 3525 5625 4650
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
5086 4576 5086 3576 5586 3576 5586 4576
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
5586 4576 5586 3576 5086 3576 5086 4576 5586 4576
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
5086 3675 5586 3675
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
5086 3750 5586 3750
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
5086 3825 5586 3825
-6
6 6900 3525 7500 4650
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
6961 4576 6961 3576 7461 3576 7461 4576
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
7461 4576 7461 3576 6961 3576 6961 4576 7461 4576
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
6961 3675 7461 3675
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
6961 3750 7461 3750
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
6961 3825 7461 3825
-6
6 11925 10725 13875 11475
2 4 0 3 0 35 50 -1 20 0.000 1 0 7 0 0 5
13800 11400 12000 11400 12000 10800 13800 10800 13800 11400
4 1 0 49 -1 4 18 0.0000 4 270 1410 12900 11175 Transport\001
-6
6 6600 1200 10050 1800
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
6692 1261 9959 1261 9959 1761 6692 1761
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
6692 1761 9959 1761 9959 1261 6692 1261 6692 1761
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
9750 1261 9750 1761
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
9525 1261 9525 1761
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
9300 1261 9300 1761
4 1 0 46 -1 4 16 0.0000 4 210 1620 8025 1575 channel buf\001
-6
6 12375 8100 12900 8700
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
12600 8161 12600 8661
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
12425 8161 12825 8161 12825 8661 12425 8661
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
12425 8661 12825 8661 12825 8161 12425 8161 12425 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
12675 8161 12675 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
12750 8161 12750 8661
-6
6 11700 8100 12225 8700
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11925 8161 11925 8661
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
11750 8161 12150 8161 12150 8661 11750 8661
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
11750 8661 12150 8661 12150 8161 11750 8161 11750 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
12000 8161 12000 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
12075 8161 12075 8661
-6
6 11025 8100 11550 8700
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11250 8161 11250 8661
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
11075 8161 11475 8161 11475 8661 11075 8661
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
11075 8661 11475 8661 11475 8161 11075 8161 11075 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11325 8161 11325 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11400 8161 11400 8661
-6
6 10350 8100 10875 8700
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
10575 8161 10575 8661
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
10400 8161 10800 8161 10800 8661 10400 8661
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
10400 8661 10800 8661 10800 8161 10400 8161 10400 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
10650 8161 10650 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
10725 8161 10725 8661
-6
6 13050 8100 13575 8700
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
13275 8161 13275 8661
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
13100 8161 13500 8161 13500 8661 13100 8661
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
13100 8661 13500 8661 13500 8161 13100 8161 13100 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
13350 8161 13350 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
13425 8161 13425 8661
-6
6 13725 8100 14250 8700
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
13950 8161 13950 8661
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
13775 8161 14175 8161 14175 8661 13775 8661
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
13775 8661 14175 8661 14175 8161 13775 8161 13775 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
14025 8161 14025 8661
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
14100 8161 14100 8661
-6
6 11100 11700 13050 12150
1 1 0 4 20 40 49 -1 20 0.000 1 0.0000 11400 11925 225 150 11400 11925 11625 12075
4 0 0 49 -1 4 12 0.0000 4 180 1170 11850 12000 I/O tasklet\001
-6
6 11100 12300 11700 12600
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11357 12331 11357 12581
2 1 0 4 35 -1 48 -1 -1 0.000 0 0 -1 0 0 4
11157 12331 11614 12331 11614 12581 11157 12581
2 3 0 0 -1 34 49 -1 20 0.000 0 0 -1 0 0 5
11157 12581 11614 12581 11614 12331 11157 12331 11157 12581
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11443 12331 11443 12581
2 1 0 2 35 -1 47 -1 -1 0.000 0 0 -1 0 0 2
11529 12331 11529 12581
-6
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 10725 5700 75 75 10725 5700 10800 5700
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 12750 5700 75 75 12750 5700 12825 5700
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 13875 5700 75 75 13875 5700 13950 5700
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 11700 5700 75 75 11700 5700 11775 5700
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 2925 6750 75 75 2925 6750 3000 6750
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 4950 6750 75 75 4950 6750 5025 6750
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 6075 6750 75 75 6075 6750 6150 6750
1 3 0 3 0 0 49 -1 20 0.000 1 0.0000 3900 6750 75 75 3900 6750 3975 6750
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 9525 4140 583 250 9525 4140 10108 3890
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 11341 4140 583 250 11341 4140 11924 3890
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 13154 4140 583 250 13154 4140 13737 3890
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 15033 4140 583 250 15033 4140 15616 3890
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 7182 5173 583 250 7182 5173 7765 4923
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 3507 5173 583 250 3507 5173 4090 4923
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 1719 5173 583 250 1719 5173 2302 4923
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 5325 5175 583 250 5325 5175 5908 4925
1 1 0 4 10 11 45 -1 20 0.000 1 0.0000 4488 8082 612 250 4488 8082 5100 8082
1 1 0 4 20 40 49 -1 20 0.000 1 0.0000 8400 600 900 210 8400 600 9300 600
1 1 0 4 10 11 49 -1 20 0.000 1 0.0000 12333 7025 417 250 12333 7025 12750 7025
1 1 0 4 20 40 49 -1 20 0.000 1 0.0000 12392 9240 808 210 12392 9240 13200 9240
1 1 0 4 20 40 49 -1 20 0.000 1 0.0000 3167 9240 808 210 3167 9240 3975 9240
1 1 0 4 37 36 49 -1 20 0.000 1 0.0000 1800 11925 225 150 1800 11925 2025 12075
1 1 0 4 10 11 45 -1 20 0.000 1 0.0000 6600 11925 225 150 6600 11925 6825 12075
2 1 1 1 0 7 49 -1 -1 4.000 1 0 -1 0 0 2
2550 3300 2550 6150
2 1 1 1 0 7 49 -1 -1 4.000 1 0 -1 0 0 2
4500 3300 4500 6150
2 1 1 1 0 7 49 -1 -1 4.000 1 0 -1 0 0 2
6300 3300 6300 6150
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 90.00 180.00
600 8025 600 11700
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 90.00 180.00
600 3150 600 1800
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 90.00 180.00
600 1500 600 150
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 1 4
1 1 1.00 90.00 180.00
1 1 1.00 90.00 180.00
3000 3300 3000 1425 3675 600 7500 600
2 3 0 4 33 32 50 -1 20 0.000 0 0 -1 0 0 5
900 3300 900 9900 8100 9900 8100 3300 900 3300
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 0 4
1 1 1.00 90.00 180.00
3525 3525 3525 2625 4500 1500 6750 1500
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 0 3
1 1 1.00 90.00 180.00
11295 4425 11295 4725 11700 5625
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 0 3
1 1 1.00 90.00 180.00
9495 4425 9495 4725 10695 5700
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 0 3
1 1 1.00 90.00 180.00
13163 4425 13163 4725 12788 5625
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 0 3
1 1 1.00 90.00 180.00
15013 4427 15013 4725 13888 5702
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
9525 3525 9525 3825
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
13125 3525 13125 3825
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
15000 3525 15000 3825
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 5
1 1 1.00 90.00 180.00
12300 7275 12300 7725 9975 7725 9975 8400 10425 8400
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 0 3
1 1 1.00 90.00 180.00
11775 5850 12300 6450 12300 6825
2 1 1 3 0 7 49 -1 -1 8.000 1 0 -1 0 0 3
11475 6150 13200 6150 13200 6825
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 0 1 3
1 1 1.00 90.00 180.00
3975 6900 4500 7650 4500 7875
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 0 1 3
1 1 1.00 90.00 180.00
3495 5475 3495 5775 3900 6675
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 0 1 3
1 1 1.00 90.00 180.00
1695 5475 1695 5775 2895 6750
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 0 1 3
1 1 1.00 90.00 180.00
7213 5477 7213 5775 6088 6752
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
1725 4875 1725 4575
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
3525 4875 3525 4575
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
5325 4875 5325 4575
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
7200 4875 7200 4575
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 0 1 2
1 1 1.00 90.00 180.00
4500 8325 4500 8721
2 1 1 3 0 7 49 -1 -1 8.000 1 0 -1 0 0 3
3225 7875 3225 7350 4725 7350
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 1 2
1 1 1.00 90.00 180.00
1 1 1.00 90.00 180.00
3900 10800 3225 9450
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 90.00 180.00
4500 10800 4500 9750
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 1 1 3
1 1 1.00 90.00 180.00
1 1 1.00 90.00 180.00
12375 10800 12375 9750 12375 9450
2 1 1 1 0 7 49 -1 -1 4.000 1 0 -1 0 0 2
12225 3300 12225 5025
2 1 1 1 0 7 49 -1 -1 4.000 1 0 -1 0 0 2
10425 3300 10425 5025
2 1 1 1 0 7 49 -1 -1 4.000 1 0 -1 0 0 2
14025 3300 14025 5025
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 4
1 1 1.00 90.00 180.00
9975 1500 10800 1500 11325 2100 11325 3825
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 1 4
1 1 1.00 90.00 180.00
1 1 1.00 90.00 180.00
9300 600 11175 600 11775 1275 11775 3300
2 3 0 4 33 32 50 -1 20 0.000 0 0 -1 0 0 5
8700 3300 8700 9900 15900 9900 15900 3300 8700 3300
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 0 1 5
1 1 1.00 90.00 180.00
13200 10800 13200 10200 14625 9750 14625 8400 14175 8400
2 1 0 3 0 7 49 -1 -1 0.000 1 0 -1 0 1 3
1 1 1.00 90.00 180.00
5325 5475 5325 5775 4950 6675
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 90.00 180.00
600 5400 600 3300
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 0 0 2
600 7800 600 5700
2 4 0 3 0 35 50 -1 20 0.000 1 0 7 0 0 5
5400 11400 3600 11400 3600 10800 5400 10800 5400 11400
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
12150 8400 12450 8400
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
11475 8400 11775 8400
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
10800 8400 11100 8400
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
12825 8400 13125 8400
2 1 0 3 0 7 49 -1 -1 8.000 1 0 -1 1 0 2
1 1 1.00 60.00 120.00
13500 8400 13800 8400
2 4 0 3 0 35 50 -1 20 0.000 1 0 7 0 0 5
2100 12600 1575 12600 1575 12300 2100 12300 2100 12600
2 4 0 3 33 32 50 -1 20 0.000 1 0 7 0 0 5
6900 12600 6375 12600 6375 12300 6900 12300 6900 12600
4 1 0 49 -1 4 14 1.5708 4 225 1365 450 825 application\001
4 1 0 49 -1 4 14 1.5708 4 180 2820 450 9450 connection = cs->conn\001
4 1 38 48 -1 4 12 0.0000 4 180 1230 8409 657 si_cs_io_cb\001
4 0 0 49 -1 4 12 1.5708 4 180 2820 2850 3225 mux->subscribe(SUB_RECV)\001
4 1 0 46 -1 4 16 1.5708 4 210 750 3600 4200 rxbuf\001
4 1 0 46 -1 4 16 1.5708 4 210 645 4575 9375 dbuf\001
4 1 0 49 -1 4 12 1.5708 4 195 1185 900 825 (eg: checks,\001
4 1 0 49 -1 4 12 1.5708 4 180 1200 1125 750 stream-int)\001
4 1 0 49 -1 4 16 0.0000 4 195 600 12300 7125 MUX\001
4 1 0 44 -1 4 16 0.0000 4 195 960 4500 8175 DEMUX\001
4 2 0 49 -1 4 12 0.0000 4 150 1080 3600 8100 Stream ID\001
4 0 0 49 -1 4 12 0.0000 4 150 1080 12825 7125 Stream ID\001
4 2 0 49 -1 4 12 0.0000 4 195 1845 3300 10125 tasklet_wakeup()\001
4 2 0 49 -1 4 12 0.0000 4 195 1845 12150 10125 tasklet_wakeup()\001
4 2 0 49 -1 4 12 0.0000 4 180 1590 11175 3150 mux->snd_buf()\001
4 0 0 49 -1 4 12 0.0000 4 180 1605 3675 3225 mux->rcv_buf()\001
4 0 0 49 -1 4 12 0.0000 4 195 2130 13425 10575 xprt->snd_buf(mbuf)\001
4 0 0 49 -1 4 12 0.0000 4 195 2070 4725 10500 xprt->rcv_buf(dbuf)\001
4 1 0 49 -1 4 12 0.0000 4 165 3465 8400 2100 HTX contents when mode==HTTP\001
4 0 0 49 -1 4 12 0.0000 4 180 2430 13125 675 snd_buf() will move the\001
4 0 0 49 -1 4 12 0.0000 4 195 2490 13125 975 buffer (zero-copy) when\001
4 0 0 49 -1 4 12 0.0000 4 195 2595 13125 1275 the destination is empty.\001
4 2 0 49 -1 4 12 0.0000 4 195 1845 7500 450 tasklet_wakeup()\001
4 0 0 49 -1 4 12 0.0000 4 195 1845 9300 450 tasklet_wakeup()\001
4 1 38 48 -1 4 12 0.0000 4 165 735 9534 4200 encode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 11325 4200 encode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 13134 4200 encode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 15009 4200 encode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 1725 5250 decode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 3525 5250 decode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 5325 5250 decode\001
4 1 38 48 -1 4 12 0.0000 4 165 735 7200 5250 decode\001
4 1 38 48 -1 4 12 0.0000 4 180 1155 12375 9300 mux_io_cb\001
4 0 0 49 -1 4 12 1.5708 4 180 2835 12075 3225 mux->subscribe(SUB_SEND)\001
4 1 0 49 -1 4 14 1.5708 4 165 1605 450 4500 mux streams\001
4 1 0 49 -1 4 14 1.5708 4 150 2145 450 6750 mux=conn->mux\001
4 1 0 49 -1 4 14 1.5708 4 180 1590 450 2550 conn_stream\001
4 0 0 49 -1 4 12 0.0000 4 150 660 12900 75 Notes:\001
4 0 0 49 -1 4 12 0.0000 4 180 2175 12975 375 - mux->rcv_buf() and\001
4 0 0 49 -1 4 12 0.0000 4 195 2475 12975 1650 - the application is also\001
4 0 0 49 -1 4 12 0.0000 4 195 2655 13125 1950 called the data layer and\001
4 0 0 49 -1 4 12 0.0000 4 180 2925 13125 2250 is cs->data and cs->data_cb\001
4 0 0 49 -1 4 12 0.0000 4 195 2940 12975 2550 - transport layers (xprt) are\001
4 0 0 49 -1 4 12 0.0000 4 195 2520 13125 2775 stackable. conn->xprt is\001
4 0 0 49 -1 4 12 0.0000 4 195 1770 13125 3000 the topmost one.\001
4 1 0 49 -1 4 18 0.0000 4 270 1410 4500 11175 Transport\001
4 1 0 46 -1 4 16 0.0000 4 210 735 14625 8175 mbuf\001
4 1 38 48 -1 4 12 0.0000 4 180 1155 3159 9300 mux_io_cb\001
4 0 0 49 -1 4 12 0.0000 4 195 2910 2250 12000 encoding/decoding function\001
4 0 0 49 -1 4 12 0.0000 4 195 1635 2250 12525 transport layer\001
4 0 0 49 -1 4 12 0.0000 4 195 2730 7050 12525 multiplexer (MUX/DEMUX)\001
4 0 0 49 -1 4 12 0.0000 4 195 2895 7050 12000 general processing function\001
4 0 0 49 -1 4 12 0.0000 4 195 3255 11775 12525 stream buffer (byte-level FIFO)\001
4 2 0 49 -1 4 12 0.0000 4 195 2835 3675 10725 xprt->subscribe(SUB_RECV)\001
4 2 0 49 -1 4 12 0.0000 4 195 2850 12225 10725 xprt->subscribe(SUB_SEND)\001

BIN
doc/internals/muxes.pdf Normal file

Binary file not shown.

BIN
doc/internals/muxes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

914
doc/internals/muxes.svg Normal file
View File

@ -0,0 +1,914 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Creator: fig2dev Version 3.2.7b -->
<!-- CreationDate: 2021-02-24 09:03:04 -->
<!-- Magnification: 1 -->
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="954pt" height="764pt"
viewBox="254 -90 15885 12723">
<g fill="none">
<!-- Line -->
<rect x="12000" y="10800" width="1800" height="600" rx="105" fill="#458dba"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Line -->
<polygon points=" 900,3300 900,9900 8100,9900 8100,3300" fill="#bbf2e2"
stroke="#a7ceb3" stroke-width="45px"/>
<!-- Line -->
<polygon points=" 8700,3300 8700,9900 15900,9900 15900,3300" fill="#bbf2e2"
stroke="#a7ceb3" stroke-width="45px"/>
<!-- Line -->
<rect x="3600" y="10800" width="1800" height="600" rx="105" fill="#458dba"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Line -->
<rect x="1575" y="12300" width="525" height="300" rx="105" fill="#458dba"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Line -->
<rect x="6375" y="12300" width="525" height="300" rx="105" fill="#bbf2e2"
stroke="#a7ceb3" stroke-width="30px" stroke-linejoin="round"/>
<!-- Line -->
<polygon points=" 4761,9751 4761,8751 4261,8751 4261,9751" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 1986,4576 1986,3576 1486,3576 1486,4576" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 3786,4576 3786,3576 3286,3576 3286,4576" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 5586,4576 5586,3576 5086,3576 5086,4576" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 7461,4576 7461,3576 6961,3576 6961,4576" fill="#dae8fc"/>
<!-- Text -->
<text xml:space="preserve" x="12900" y="11175" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="216" text-anchor="middle">Transport</text>
<!-- Line -->
<polygon points=" 6692,1761 9959,1761 9959,1261 6692,1261" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 12425,8661 12825,8661 12825,8161 12425,8161" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 11750,8661 12150,8661 12150,8161 11750,8161" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 11075,8661 11475,8661 11475,8161 11075,8161" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 10400,8661 10800,8661 10800,8161 10400,8161" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 13100,8661 13500,8661 13500,8161 13100,8161" fill="#dae8fc"/>
<!-- Line -->
<polygon points=" 13775,8661 14175,8661 14175,8161 13775,8161" fill="#dae8fc"/>
<!-- Ellipse -->
<ellipse cx="11400" cy="11925" rx="225" ry="150" fill="#ffc1e7"
stroke="#d10000" stroke-width="45px"/>
<!-- Text -->
<text xml:space="preserve" x="11850" y="12000" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">I/O tasklet</text>
<!-- Line -->
<polygon points=" 11157,12581 11614,12581 11614,12331 11157,12331" fill="#dae8fc"/>
<!-- Circle -->
<circle cx="10725" cy="5700" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="12750" cy="5700" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="13875" cy="5700" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="11700" cy="5700" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="2925" cy="6750" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="4950" cy="6750" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="6075" cy="6750" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Circle -->
<circle cx="3900" cy="6750" r="75" fill="#000000"
stroke="#000000" stroke-width="30px"/>
<!-- Ellipse -->
<ellipse cx="9525" cy="4140" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="11341" cy="4140" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="13154" cy="4140" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="15033" cy="4140" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="7182" cy="5173" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="3507" cy="5173" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="1719" cy="5173" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="5325" cy="5175" rx="583" ry="250" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="8400" cy="600" rx="900" ry="210" fill="#ffc1e7"
stroke="#d10000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="12333" cy="7025" rx="417" ry="250" fill="#87cfff"
stroke="#0000d1" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="12392" cy="9240" rx="808" ry="210" fill="#ffc1e7"
stroke="#d10000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="3167" cy="9240" rx="808" ry="210" fill="#ffc1e7"
stroke="#d10000" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="1800" cy="11925" rx="225" ry="150" fill="#ffe6cc"
stroke="#e9b000" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 2550,3300 2550,6150"
stroke="#000000" stroke-width="8px" stroke-linejoin="round" stroke-dasharray="40 40"/>
<!-- Line -->
<polyline points=" 4500,3300 4500,6150"
stroke="#000000" stroke-width="8px" stroke-linejoin="round" stroke-dasharray="40 40"/>
<!-- Line -->
<polyline points=" 6300,3300 6300,6150"
stroke="#000000" stroke-width="8px" stroke-linejoin="round" stroke-dasharray="40 40"/>
<!-- Line -->
<defs>
<clipPath id="cp0">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 645,11504 555,11504 582,11718 618,11718z"/>
</clipPath>
</defs>
<polyline points=" 600,8025 600,11700" clip-path="url(#cp0)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 600,11700 -->
<polygon points=" 555,11504 600,11684 645,11504 555,11504"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp1">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 555,1996 645,1996 618,1782 582,1782z"/>
</clipPath>
</defs>
<polyline points=" 600,3150 600,1800" clip-path="url(#cp1)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 600,1800 -->
<polygon points=" 645,1996 600,1816 555,1996 645,1996"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp2">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 555,346 645,346 618,132 582,132z"/>
</clipPath>
</defs>
<polyline points=" 600,1500 600,150" clip-path="url(#cp2)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 600,150 -->
<polygon points=" 645,346 600,166 555,346 645,346"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp3">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 7304,555 7304,645 7518,618 7518,582z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 3000,3300 3000,1425 3675,600 7500,600" clip-path="url(#cp3)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 7500,600 -->
<polygon points=" 7304,645 7484,600 7304,555 7304,645"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Backward arrow to point 3000,3300 -->
<polygon points=" 2955,3104 3000,3284 3045,3104 2955,3104"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp4">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 6554,1455 6554,1545 6768,1518 6768,1482z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 3525,3525 3525,2625 4500,1500 6750,1500" clip-path="url(#cp4)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 6750,1500 -->
<polygon points=" 6554,1545 6734,1500 6554,1455 6554,1545"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp5">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 11661,5428 11578,5465 11691,5649 11724,5634z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 11295,4425 11295,4725 11700,5625" clip-path="url(#cp5)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 11700,5625 -->
<polygon points=" 11578,5465 11693,5610 11661,5428 11578,5465"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp6">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 10571,5541 10514,5611 10698,5725 10720,5697z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 9495,4425 9495,4725 10695,5700" clip-path="url(#cp6)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 10695,5700 -->
<polygon points=" 10514,5611 10682,5690 10571,5541 10514,5611"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp7">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12905,5461 12822,5427 12764,5635 12798,5649z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 13163,4425 13163,4725 12788,5625" clip-path="url(#cp7)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 12788,5625 -->
<polygon points=" 12822,5427 12794,5610 12905,5461 12822,5427"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp8">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 14066,5607 14007,5539 13863,5700 13886,5727z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 15013,4427 15013,4725 13888,5702" clip-path="url(#cp8)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 13888,5702 -->
<polygon points=" 14007,5539 13900,5691 14066,5607 14007,5539"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp9">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 9555,3689 9495,3689 9507,3843 9543,3843z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 9525,3525 9525,3825" clip-path="url(#cp9)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 9525,3825 -->
<polygon points=" 9495,3689 9525,3809 9555,3689 9495,3689"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp10">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 13155,3689 13095,3689 13107,3843 13143,3843z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 13125,3525 13125,3825" clip-path="url(#cp10)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 13125,3825 -->
<polygon points=" 13095,3689 13125,3809 13155,3689 13095,3689"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp11">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 15030,3689 14970,3689 14982,3843 15018,3843z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 15000,3525 15000,3825" clip-path="url(#cp11)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 15000,3825 -->
<polygon points=" 14970,3689 15000,3809 15030,3689 14970,3689"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp12">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 10229,8355 10229,8445 10443,8418 10443,8382z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 12300,7275 12300,7725 9975,7725 9975,8400 10425,8400" clip-path="url(#cp12)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 10425,8400 -->
<polygon points=" 10229,8445 10409,8400 10229,8355 10229,8445"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp13">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12345,6629 12255,6629 12282,6843 12318,6843z
M 3045,3104 2955,3104 2982,3318 3018,3318z"/>
</clipPath>
</defs>
<polyline points=" 11775,5850 12300,6450 12300,6825" clip-path="url(#cp13)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 12300,6825 -->
<polygon points=" 12255,6629 12300,6809 12345,6629 12255,6629"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<polyline points=" 11475,6150 13200,6150 13200,6825"
stroke="#000000" stroke-width="30px" stroke-linejoin="round" stroke-dasharray="80 80"/>
<!-- Line -->
<defs>
<clipPath id="cp14">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12345,6629 12255,6629 12282,6843 12318,6843z
M 4051,7087 4124,7035 3979,6875 3950,6896z"/>
</clipPath>
</defs>
<polyline points=" 3975,6900 4500,7650 4500,7875" clip-path="url(#cp14)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 3975,6900 -->
<polygon points=" 4124,7035 3984,6913 4051,7087 4124,7035"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp15">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12345,6629 12255,6629 12282,6843 12318,6843z
M 3450,5671 3540,5671 3513,5457 3477,5457z"/>
</clipPath>
</defs>
<polyline points=" 3495,5475 3495,5775 3900,6675" clip-path="url(#cp15)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 3495,5475 -->
<polygon points=" 3540,5671 3495,5491 3450,5671 3540,5671"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp16">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12345,6629 12255,6629 12282,6843 12318,6843z
M 1650,5671 1740,5671 1713,5457 1677,5457z"/>
</clipPath>
</defs>
<polyline points=" 1695,5475 1695,5775 2895,6750" clip-path="url(#cp16)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 1695,5475 -->
<polygon points=" 1740,5671 1695,5491 1650,5671 1740,5671"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp17">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12345,6629 12255,6629 12282,6843 12318,6843z
M 7168,5673 7258,5673 7231,5459 7195,5459z"/>
</clipPath>
</defs>
<polyline points=" 7213,5477 7213,5775 6088,6752" clip-path="url(#cp17)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 7213,5477 -->
<polygon points=" 7258,5673 7213,5493 7168,5673 7258,5673"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp18">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 1695,4711 1755,4711 1743,4557 1707,4557z
M 7168,5673 7258,5673 7231,5459 7195,5459z"/>
</clipPath>
</defs>
<polyline points=" 1725,4875 1725,4575" clip-path="url(#cp18)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 1725,4575 -->
<polygon points=" 1755,4711 1725,4591 1695,4711 1755,4711"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp19">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 3495,4711 3555,4711 3543,4557 3507,4557z
M 7168,5673 7258,5673 7231,5459 7195,5459z"/>
</clipPath>
</defs>
<polyline points=" 3525,4875 3525,4575" clip-path="url(#cp19)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 3525,4575 -->
<polygon points=" 3555,4711 3525,4591 3495,4711 3555,4711"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp20">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 5295,4711 5355,4711 5343,4557 5307,4557z
M 7168,5673 7258,5673 7231,5459 7195,5459z"/>
</clipPath>
</defs>
<polyline points=" 5325,4875 5325,4575" clip-path="url(#cp20)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 5325,4575 -->
<polygon points=" 5355,4711 5325,4591 5295,4711 5355,4711"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp21">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 7170,4711 7230,4711 7218,4557 7182,4557z
M 7168,5673 7258,5673 7231,5459 7195,5459z"/>
</clipPath>
</defs>
<polyline points=" 7200,4875 7200,4575" clip-path="url(#cp21)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 7200,4575 -->
<polygon points=" 7230,4711 7200,4591 7170,4711 7230,4711"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp22">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 7170,4711 7230,4711 7218,4557 7182,4557z
M 4455,8521 4545,8521 4518,8307 4482,8307z"/>
</clipPath>
</defs>
<polyline points=" 4500,8325 4500,8721" clip-path="url(#cp22)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 4500,8325 -->
<polygon points=" 4545,8521 4500,8341 4455,8521 4545,8521"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<polyline points=" 3225,7875 3225,7350 4725,7350"
stroke="#000000" stroke-width="30px" stroke-linejoin="round" stroke-dasharray="80 80"/>
<!-- Line -->
<defs>
<clipPath id="cp23">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 3272,9646 3353,9605 3233,9426 3201,9442z
M 3853,10604 3772,10645 3892,10824 3924,10808z"/>
</clipPath>
</defs>
<polyline points=" 3900,10800 3225,9450" clip-path="url(#cp23)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 3225,9450 -->
<polygon points=" 3353,9605 3232,9464 3272,9646 3353,9605"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Backward arrow to point 3900,10800 -->
<polygon points=" 3772,10645 3893,10786 3853,10604 3772,10645"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp24">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 4455,9946 4545,9946 4518,9732 4482,9732z
M 3853,10604 3772,10645 3892,10824 3924,10808z"/>
</clipPath>
</defs>
<polyline points=" 4500,10800 4500,9750" clip-path="url(#cp24)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 4500,9750 -->
<polygon points=" 4545,9946 4500,9766 4455,9946 4545,9946"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp25">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12330,9646 12420,9646 12393,9432 12357,9432z
M 12420,10604 12330,10604 12357,10818 12393,10818z"/>
</clipPath>
</defs>
<polyline points=" 12375,10800 12375,9750 12375,9450" clip-path="url(#cp25)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 12375,9450 -->
<polygon points=" 12420,9646 12375,9466 12330,9646 12420,9646"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Backward arrow to point 12375,10800 -->
<polygon points=" 12330,10604 12375,10784 12420,10604 12330,10604"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<polyline points=" 12225,3300 12225,5025"
stroke="#000000" stroke-width="8px" stroke-linejoin="round" stroke-dasharray="40 40"/>
<!-- Line -->
<polyline points=" 10425,3300 10425,5025"
stroke="#000000" stroke-width="8px" stroke-linejoin="round" stroke-dasharray="40 40"/>
<!-- Line -->
<polyline points=" 14025,3300 14025,5025"
stroke="#000000" stroke-width="8px" stroke-linejoin="round" stroke-dasharray="40 40"/>
<!-- Line -->
<defs>
<clipPath id="cp26">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 11370,3629 11280,3629 11307,3843 11343,3843z
M 12420,10604 12330,10604 12357,10818 12393,10818z"/>
</clipPath>
</defs>
<polyline points=" 9975,1500 10800,1500 11325,2100 11325,3825" clip-path="url(#cp26)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 11325,3825 -->
<polygon points=" 11280,3629 11325,3809 11370,3629 11280,3629"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp27">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 11820,3104 11730,3104 11757,3318 11793,3318z
M 9496,645 9496,555 9282,582 9282,618z"/>
</clipPath>
</defs>
<polyline points=" 9300,600 11175,600 11775,1275 11775,3300" clip-path="url(#cp27)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 11775,3300 -->
<polygon points=" 11730,3104 11775,3284 11820,3104 11730,3104"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Backward arrow to point 9300,600 -->
<polygon points=" 9496,555 9316,600 9496,645 9496,555"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp28">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 11820,3104 11730,3104 11757,3318 11793,3318z
M 13245,10604 13155,10604 13182,10818 13218,10818z"/>
</clipPath>
</defs>
<polyline points=" 13200,10800 13200,10200 14625,9750 14625,8400 14175,8400" clip-path="url(#cp28)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 13200,10800 -->
<polygon points=" 13155,10604 13200,10784 13245,10604 13155,10604"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp29">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 11820,3104 11730,3104 11757,3318 11793,3318z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 5325,5475 5325,5775 4950,6675" clip-path="url(#cp29)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Backward arrow to point 5325,5475 -->
<polygon points=" 5370,5671 5325,5491 5280,5671 5370,5671"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp30">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 555,3496 645,3496 618,3282 582,3282z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 600,5400 600,3300" clip-path="url(#cp30)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 600,3300 -->
<polygon points=" 645,3496 600,3316 555,3496 645,3496"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<polyline points=" 600,7800 600,5700"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Line -->
<defs>
<clipPath id="cp31">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12314,8370 12314,8430 12468,8418 12468,8382z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 12150,8400 12450,8400" clip-path="url(#cp31)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 12450,8400 -->
<polygon points=" 12314,8430 12434,8400 12314,8370 12314,8430"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp32">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 11639,8370 11639,8430 11793,8418 11793,8382z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 11475,8400 11775,8400" clip-path="url(#cp32)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 11775,8400 -->
<polygon points=" 11639,8430 11759,8400 11639,8370 11639,8430"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp33">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 10964,8370 10964,8430 11118,8418 11118,8382z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 10800,8400 11100,8400" clip-path="url(#cp33)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 11100,8400 -->
<polygon points=" 10964,8430 11084,8400 10964,8370 10964,8430"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp34">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 12989,8370 12989,8430 13143,8418 13143,8382z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 12825,8400 13125,8400" clip-path="url(#cp34)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 13125,8400 -->
<polygon points=" 12989,8430 13109,8400 12989,8370 12989,8430"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Line -->
<defs>
<clipPath id="cp35">
<path clip-rule="evenodd" d="M 254,-90 H 16139 V 12633 H 254 z
M 13664,8370 13664,8430 13818,8418 13818,8382z
M 5280,5671 5370,5671 5343,5457 5307,5457z"/>
</clipPath>
</defs>
<polyline points=" 13500,8400 13800,8400" clip-path="url(#cp35)"
stroke="#000000" stroke-width="30px" stroke-linejoin="round"/>
<!-- Forward arrow to point 13800,8400 -->
<polygon points=" 13664,8430 13784,8400 13664,8370 13664,8430"
stroke="#000000" stroke-width="8px" stroke-miterlimit="8" fill="#000000"/>
<!-- Text -->
<g transform="translate(450,825) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="168" text-anchor="middle">application</text>
</g><!-- Text -->
<g transform="translate(450,9450) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="168" text-anchor="middle">connection = cs-&gt;conn</text>
</g><!-- Text -->
<g transform="translate(2850,3225) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">mux-&gt;subscribe(SUB_RECV)</text>
</g><!-- Text -->
<g transform="translate(900,825) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">(eg: checks,</text>
</g><!-- Text -->
<g transform="translate(1125,750) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">stream-int)</text>
</g><!-- Text -->
<text xml:space="preserve" x="12300" y="7125" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="192" text-anchor="middle">MUX</text>
<!-- Text -->
<text xml:space="preserve" x="3600" y="8100" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">Stream ID</text>
<!-- Text -->
<text xml:space="preserve" x="12825" y="7125" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">Stream ID</text>
<!-- Text -->
<text xml:space="preserve" x="3300" y="10125" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">tasklet_wakeup()</text>
<!-- Text -->
<text xml:space="preserve" x="12150" y="10125" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">tasklet_wakeup()</text>
<!-- Text -->
<text xml:space="preserve" x="11175" y="3150" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">mux-&gt;snd_buf()</text>
<!-- Text -->
<text xml:space="preserve" x="3675" y="3225" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">mux-&gt;rcv_buf()</text>
<!-- Text -->
<text xml:space="preserve" x="13425" y="10575" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">xprt-&gt;snd_buf(mbuf)</text>
<!-- Text -->
<text xml:space="preserve" x="4725" y="10500" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">xprt-&gt;rcv_buf(dbuf)</text>
<!-- Text -->
<text xml:space="preserve" x="8400" y="2100" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">HTX contents when mode==HTTP</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="675" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">snd_buf() will move the</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="975" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">buffer (zero-copy) when</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="1275" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">the destination is empty.</text>
<!-- Text -->
<text xml:space="preserve" x="7500" y="450" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">tasklet_wakeup()</text>
<!-- Text -->
<text xml:space="preserve" x="9300" y="450" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">tasklet_wakeup()</text>
<!-- Text -->
<g transform="translate(12075,3225) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">mux-&gt;subscribe(SUB_SEND)</text>
</g><!-- Text -->
<g transform="translate(450,4500) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="168" text-anchor="middle">mux streams</text>
</g><!-- Text -->
<g transform="translate(450,6750) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="168" text-anchor="middle">mux=conn-&gt;mux</text>
</g><!-- Text -->
<g transform="translate(450,2550) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="168" text-anchor="middle">conn_stream</text>
</g><!-- Text -->
<text xml:space="preserve" x="12900" y="75" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">Notes:</text>
<!-- Text -->
<text xml:space="preserve" x="12975" y="375" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">- mux-&gt;rcv_buf() and</text>
<!-- Text -->
<text xml:space="preserve" x="12975" y="1650" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">- the application is also</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="1950" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">called the data layer and</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="2250" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">is cs-&gt;data and cs-&gt;data_cb</text>
<!-- Text -->
<text xml:space="preserve" x="12975" y="2550" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">- transport layers (xprt) are</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="2775" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">stackable. conn-&gt;xprt is</text>
<!-- Text -->
<text xml:space="preserve" x="13125" y="3000" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">the topmost one.</text>
<!-- Text -->
<text xml:space="preserve" x="4500" y="11175" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="216" text-anchor="middle">Transport</text>
<!-- Text -->
<text xml:space="preserve" x="2250" y="12000" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">encoding/decoding function</text>
<!-- Text -->
<text xml:space="preserve" x="2250" y="12525" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">transport layer</text>
<!-- Text -->
<text xml:space="preserve" x="7050" y="12525" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">multiplexer (MUX/DEMUX)</text>
<!-- Text -->
<text xml:space="preserve" x="7050" y="12000" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">general processing function</text>
<!-- Text -->
<text xml:space="preserve" x="11775" y="12525" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="start">stream buffer (byte-level FIFO)</text>
<!-- Text -->
<text xml:space="preserve" x="3675" y="10725" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">xprt-&gt;subscribe(SUB_RECV)</text>
<!-- Text -->
<text xml:space="preserve" x="12225" y="10725" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="end">xprt-&gt;subscribe(SUB_SEND)</text>
<!-- Line -->
<polyline points=" 4261,9751 4261,8751 4761,8751 4761,9751"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 1486,4576 1486,3576 1986,3576 1986,4576"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 3286,4576 3286,3576 3786,3576 3786,4576"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 5086,4576 5086,3576 5586,3576 5586,4576"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 6961,4576 6961,3576 7461,3576 7461,4576"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 6692,1261 9959,1261 9959,1761 6692,1761"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 12425,8161 12825,8161 12825,8661 12425,8661"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 11750,8161 12150,8161 12150,8661 11750,8661"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 11075,8161 11475,8161 11475,8661 11075,8661"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 10400,8161 10800,8161 10800,8661 10400,8661"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 13100,8161 13500,8161 13500,8661 13100,8661"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 13775,8161 14175,8161 14175,8661 13775,8661"
stroke="#458dba" stroke-width="45px"/>
<!-- Line -->
<polyline points=" 11157,12331 11614,12331 11614,12581 11157,12581"
stroke="#458dba" stroke-width="45px"/>
<!-- Text -->
<text xml:space="preserve" x="8409" y="657" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">si_cs_io_cb</text>
<!-- Text -->
<text xml:space="preserve" x="9534" y="4200" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">encode</text>
<!-- Text -->
<text xml:space="preserve" x="11325" y="4200" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">encode</text>
<!-- Text -->
<text xml:space="preserve" x="13134" y="4200" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">encode</text>
<!-- Text -->
<text xml:space="preserve" x="15009" y="4200" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">encode</text>
<!-- Text -->
<text xml:space="preserve" x="1725" y="5250" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">decode</text>
<!-- Text -->
<text xml:space="preserve" x="3525" y="5250" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">decode</text>
<!-- Text -->
<text xml:space="preserve" x="5325" y="5250" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">decode</text>
<!-- Text -->
<text xml:space="preserve" x="7200" y="5250" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">decode</text>
<!-- Text -->
<text xml:space="preserve" x="12375" y="9300" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">mux_io_cb</text>
<!-- Text -->
<text xml:space="preserve" x="3159" y="9300" fill="#1a1a1a" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="144" text-anchor="middle">mux_io_cb</text>
<!-- Line -->
<polyline points=" 4261,8850 4761,8850"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 4261,8925 4761,8925"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 4261,9000 4761,9000"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 1486,3675 1986,3675"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 1486,3750 1986,3750"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 1486,3825 1986,3825"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 3286,3675 3786,3675"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 3286,3750 3786,3750"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 3286,3825 3786,3825"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 5086,3675 5586,3675"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 5086,3750 5586,3750"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 5086,3825 5586,3825"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 6961,3675 7461,3675"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 6961,3750 7461,3750"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 6961,3825 7461,3825"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 9750,1261 9750,1761"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 9525,1261 9525,1761"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 9300,1261 9300,1761"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 12600,8161 12600,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 12675,8161 12675,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 12750,8161 12750,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11925,8161 11925,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 12000,8161 12000,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 12075,8161 12075,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11250,8161 11250,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11325,8161 11325,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11400,8161 11400,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 10575,8161 10575,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 10650,8161 10650,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 10725,8161 10725,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 13275,8161 13275,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 13350,8161 13350,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 13425,8161 13425,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 13950,8161 13950,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 14025,8161 14025,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 14100,8161 14100,8661"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11357,12331 11357,12581"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11443,12331 11443,12581"
stroke="#458dba" stroke-width="15px"/>
<!-- Line -->
<polyline points=" 11529,12331 11529,12581"
stroke="#458dba" stroke-width="15px"/>
<!-- Text -->
<text xml:space="preserve" x="8025" y="1575" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="192" text-anchor="middle">channel buf</text>
<!-- Text -->
<g transform="translate(3600,4200) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="192" text-anchor="middle">rxbuf</text>
</g><!-- Text -->
<g transform="translate(4575,9375) rotate(-90)" >
<text xml:space="preserve" x="0" y="0" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="192" text-anchor="middle">dbuf</text>
</g><!-- Text -->
<text xml:space="preserve" x="14625" y="8175" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="192" text-anchor="middle">mbuf</text>
<!-- Ellipse -->
<ellipse cx="4488" cy="8082" rx="612" ry="250" fill="#87cfff"
stroke="#0000d1" stroke-width="45px"/>
<!-- Ellipse -->
<ellipse cx="6600" cy="11925" rx="225" ry="150" fill="#87cfff"
stroke="#0000d1" stroke-width="45px"/>
<!-- Text -->
<text xml:space="preserve" x="4500" y="8175" fill="#000000" font-family="AvantGarde" font-style="normal" font-weight="normal" font-size="192" text-anchor="middle">DEMUX</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 43 KiB