aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2024-04-12 21:17:39 +0200
committerpespin <pespin@sysmocom.de>2024-04-15 08:55:36 +0000
commitc77743d544134ea5b01d7cc62e05ad1dce3479a6 (patch)
tree30e64d8f4ad0d18f4c42c2c2e8561ee4152aeb60
parentd076e9350730eac472fc6ecbfd78eddcd3c16fef (diff)
pcu: Update component diagram
The component architecture in PCU_Tests is quite complex to follow. Update the diagram in order to make it easier for people to gasp the big picture. Change-Id: Ie592a9301b7a900334650741ed633cd70535a2b1
-rw-r--r--pcu/PCU_Tests.ttcn4
-rw-r--r--pcu/README.md93
2 files changed, 87 insertions, 10 deletions
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 442d6177..cab70e8e 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -157,7 +157,7 @@ type component RAW_PCU_Test_CT extends bssgp_CT, MS_BTS_IFACE_CT, StatsD_ConnHdl
var StatsD_Checker_CT vc_STATSD;
/* Connection to the PCUIF component */
- port RAW_PCU_MSG_PT PCUIF;
+ //port RAW_PCU_MSG_PT PCUIF;
/* VTY connection to the PCU */
port TELNETasp_PT PCUVTY;
@@ -282,7 +282,7 @@ runs on RAW_PCU_Test_CT {
/* Init PCU interface component */
vc_PCUIF := RAW_PCUIF_CT.create("PCUIF") alive;
- connect(vc_PCUIF:MTC, self:PCUIF);
+ //connect(vc_PCUIF:MTC, self:PCUIF);
map(vc_PCUIF:PCU, system:PCU);
/* Create one BTS component (we may want more some day) */
diff --git a/pcu/README.md b/pcu/README.md
index a2e439a5..0a1d31f5 100644
--- a/pcu/README.md
+++ b/pcu/README.md
@@ -2,17 +2,94 @@
* external interfaces
* Gb (emulates SGSN side NS/BSSGP)
- * unix pcu socket (emulates BTS)
+ * PCUIF: unix pcu socket (emulates BTS)
* VTY
+ * CTRL
+ * StatsD
-{% dot msc_tests.svg
+{% dot pcu_tests.svg
digraph G {
- rankdir=LR;
- PCU [label="IUT\nosmo-pcu",shape="box"];
- ATS [label="ATS\nPCU_Tests.ttcn"];
+ PCU [label="IUT\nosmo-pcu",shape="box", color=red];
- PCU -> ATS [label="Gb"];
- PCU -> ATS [label="pcu_sock"];
- ATS -> PCU [label="VTY"];
+ subgraph cluster_ats {
+ label = "ATS\n(TTCN-3)";
+
+ system_PCU_PT [label="port system:PCU"];
+
+ subgraph cluster_RAW_PCU_Test_CT {
+ label = "RAW_PCU_Test_CT\n(PCU_Tests.ttcn)";
+
+ RAW_PCU_MSG_PT_PCUIF_A [label="port RAW_PCU_MSG_PT PCUIF\n(unused)"]
+ PCUVTY [label="PCUVTY"];
+ StatsD_ConnHdlr [label="StatsD_ConnHdlr"];
+ CTRL_Adapter_CT [label="CTRL_Adapter_CT"];
+
+ test [label="testcasename()\n(PCU_Tests.ttcn)", color=red];
+
+ subgraph cluster_bssgp_CT {
+ label="bssgp_CT\nSGSN_Components.ttcn";
+ subgraph cluster_BSSGP_Client_CT {
+ label="BSSGP_Client_CT\nBSSGP_Emulation.ttcnpp";
+ BSSGP_PT [label="port BSSGP_PT BSSGP"];
+ }
+ }
+
+ subgraph cluster_MS_BTS_IFACE_CT {
+ label = "MS_BTS_IFACE_CT\n(GPRS_Components.ttcn)";
+
+ RAW_PCU_MSG_PT_BTS_IFACE [label="port RAW_PCU_MSG_PT BTS"];
+ }
+
+ }
+
+ subgraph cluster_RAW_PCUIF_CT {
+ label = "RAW_PCUIF_CT\n(PCUIF_Components.ttcn)";
+
+ PCUIF_CODEC_PT_PCU [label="port PCUIF_CODEC_PT PCU"];
+ RAW_PCU_MSG_PT_BTS [label="port RAW_PCU_MSG_PT BTS"];
+ RAW_PCU_MSG_PT_MTC [label="port RAW_PCU_MSG_PT MTC"];
+
+ PCUIF_CODEC_PT_PCU -> RAW_PCU_MSG_PT_BTS [dir=none];
+ PCUIF_CODEC_PT_PCU -> RAW_PCU_MSG_PT_MTC [dir=none];
+
+ }
+
+ subgraph cluster_RAW_PCU_BTS_CT {
+ label = "RAW_PCU_BTS_CT\n(PCUIF_Components.ttcn)";
+
+ RAW_PCU_MSG_PT_CLCK_A [label="port RAW_PCU_MSG_PT CLCK"];
+ RAW_PCU_MSG_PT_PCUIF_B [label="port RAW_PCU_MSG_PT PCUIF"];
+ RAW_PCU_MSG_PT_TC [label="port RAW_PCU_MSG_PT TC"];
+
+ subgraph cluster_RAW_PCU_ClckGen_CT {
+ label = "RAW_PCU_ClckGen_CT\n(PCUIF_Components.ttcn)";
+
+ RAW_PCU_MSG_PT_CLCK_B [label="port RAW_PCU_MSG_PT CLCK", color=purple];
+ }
+
+ RAW_PCU_MSG_PT_CLCK_A -> RAW_PCU_MSG_PT_CLCK_B [dir=back];
+ RAW_PCU_MSG_PT_PCUIF_B -> RAW_PCU_MSG_PT_TC [dir=none];
+ }
+
+
+ RAW_PCU_MSG_PT_TC -> RAW_PCU_MSG_PT_BTS_IFACE [dir=none];
+ RAW_PCU_MSG_PT_PCUIF_A -> RAW_PCU_MSG_PT_MTC [dir=none];
+ RAW_PCU_MSG_PT_PCUIF_B -> RAW_PCU_MSG_PT_BTS [dir=none];
+
+ PCUIF_CODEC_PT_PCU -> system_PCU_PT [dir=none];
+
+ test -> RAW_PCU_MSG_PT_BTS_IFACE [dir=none];
+ test -> RAW_PCU_MSG_PT_PCUIF_A [label="(unused)", dir=none];
+ test -> BSSGP_PT;
+ test -> PCUVTY;
+ test -> StatsD_ConnHdlr;
+ test -> CTRL_Adapter_CT;
+ }
+
+ PCU -> BSSGP_PT [label="Gb"];
+ PCU -> StatsD_ConnHdlr [label="statsd"];
+ system_PCU_PT -> PCU [label="PCUIF"];
+ PCUVTY -> PCU [label="VTY"];
+ CTRL_Adapter_CT -> PCU [label="CTRL"];
}
%}