laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21401 )


Change subject: gbproxy: Test for sizes up to 1600 bytes, not just 1024 bytes
......................................................................

gbproxy: Test for sizes up to 1600 bytes, not just 1024 bytes

The NS specs state up to 1600 bytes "gross NS size" must be supported,
at least by the underlying FR layer. Let's test up to that.  Let's
also speed things up by using 4-byte size increments, and print
the size of the current message.

Change-Id: I76358323e79cfc3d0e9c979c716b7a552f3b8e3b
---
M gbproxy/GBProxy_Tests.ttcn
1 file changed, 7 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/01/21401/1

diff --git a/gbproxy/GBProxy_Tests.ttcn b/gbproxy/GBProxy_Tests.ttcn
index b708fa0..0721fbd 100644
--- a/gbproxy/GBProxy_Tests.ttcn
+++ b/gbproxy/GBProxy_Tests.ttcn
@@ -40,6 +40,9 @@
 /* mcc_mnc is 24.008 10.5.5.15 encoded. 262 42 */
 const BcdMccMnc c_mcc_mnc := '262F42'H;

+/* 48.016 section 6.1.4.2: The default maximum information field size of 1600 
octets shall be supported on the Gb interface */
+const integer max_fr_info_size := 1600;
+
 modulepar {
        /* IP/port on which we run our internal GSUP/HLR emulation */
        NSConfigurations mp_nsconfig_sgsn := {
@@ -754,12 +757,13 @@
        var BssgpBvcConfig bvcc := g_pars.pcu[ran_idx].cfg.bvc[0];
        var integer i;

-       for (i := 0; i < 1024; i := i+1) {
+       for (i := 0; i < max_fr_info_size-4; i := i+4) {
                var octetstring payload := f_rnd_octstring(i);
                var template (value) PDU_BSSGP pdu_tx := 
ts_BSSGP_UL_UD(g_pars.tlli, bvcc.cell_id, payload);
                /* we cannot use pdu_tx as there are some subtle differences in 
the length field :/ */
                var template (present) PDU_BSSGP pdu_rx := 
tr_BSSGP_UL_UD(g_pars.tlli, bvcc.cell_id, payload);

+               log("UL-UNITDATA(payload_size=", i);
                f_pcu2sgsn(pdu_tx, pdu_rx);
        }
        setverdict(pass);
@@ -781,7 +785,7 @@
 private function f_TC_dl_unitdata(charstring id) runs on BSSGP_ConnHdlr {
        var integer i;

-       for (i := 0; i < 1024; i := i+1) {
+       for (i := 0; i < max_fr_info_size-4; i := i+4) {
                var octetstring payload := f_rnd_octstring(i);
                var template (value) PDU_BSSGP pdu_tx :=
                        ts_BSSGP_DL_UD(g_pars.tlli, payload, omit, 
ts_BSSGP_IMSI(g_pars.imsi));
@@ -789,6 +793,7 @@
                var template (present) PDU_BSSGP pdu_rx :=
                        tr_BSSGP_DL_UD(g_pars.tlli, payload, 
tr_BSSGP_IMSI(g_pars.imsi));

+               log("DL-UNITDATA(payload_size=", i);
                f_sgsn2pcu(pdu_tx, pdu_rx);
        }
        setverdict(pass);

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21401
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I76358323e79cfc3d0e9c979c716b7a552f3b8e3b
Gerrit-Change-Number: 21401
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <lafo...@osmocom.org>
Gerrit-MessageType: newchange

Reply via email to