lists.osmocom.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
List overview
Download
gerrit-log
March 2022
----- 2025 -----
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
gerrit-log@lists.osmocom.org
3 participants
1873 discussions
Start a n
N
ew thread
Change in osmo-ttcn3-hacks[master]: ggsn: Introduce test TC_lots_of_concurrent_pdp_ctx
by pespin
pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27347
) Change subject: ggsn: Introduce test TC_lots_of_concurrent_pdp_ctx ...................................................................... ggsn: Introduce test TC_lots_of_concurrent_pdp_ctx Change-Id: Iab19963f8e869af8fe0c385abd0fd7bbd9221790 --- M ggsn_tests/GGSN_Tests.ttcn 1 file changed, 115 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved laforge: Looks good to me, but someone else must approve diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn index b66d7ba..58a12a6 100644 --- a/ggsn_tests/GGSN_Tests.ttcn +++ b/ggsn_tests/GGSN_Tests.ttcn @@ -1862,6 +1862,119 @@ setverdict(pass); } + /* Test creation, user plane and deletion of big amount (1000) of concurrent PDP context */ + testcase TC_lots_of_concurrent_pdp_ctx() runs on GT_CT { + var Gtp1cUnitdata udc; + var Gtp1uUnitdata udu; + const integer num_ctx := 1000; + var PdpContext ctx[num_ctx]; + timer T_next := 0.01; + var integer next_req_ctx := 0; + var integer rx_resp_ctx := 0; + var integer rx_pong := 0; + var OCT4 dns1_addr; + var OCT4 saddr; + var integer teic; + var integer idx; + + f_init(); + + for (var integer i := 0; i < num_ctx; i := i + 1) { + ctx[i] := valueof(t_DefinePDP(f_rnd_imsi('26242'H), f_rnd_msisdn('1234'O), c_ApnInternet, valueof(t_EuaIPv4Dyn))); + ctx[i].teic := int2oct(i+1, 4); /* +1: skip TEIC=0 */ + ctx[i].teid := int2oct(i+1, 4); /* +1: skip TEID=0 */ + ctx[i].pco_req := valueof(ts_PCO_IPv4_DNS_CONT); + } + + T_default.start(60.0); + + T_next.start; + alt { + [DIAMETER_PROC.checkstate("Connected")] as_DIA_CCR(INITIAL_REQUEST) { repeat; } + [] pingpong(); + [] T_next.timeout { + f_send_gtpc(ts_GTPC_CreatePDP(g_peer_c, g_c_seq_nr, ctx[next_req_ctx].imsi, g_restart_ctr, + ctx[next_req_ctx].teid, ctx[next_req_ctx].teic, ctx[next_req_ctx].nsapi, + ctx[next_req_ctx].eua, ctx[next_req_ctx].apn, g_sgsn_ip_c, g_sgsn_ip_u, + ctx[next_req_ctx].msisdn, ctx[next_req_ctx].pco_req, ctx[next_req_ctx].ratType, + ctx[next_req_ctx].uli)); + next_req_ctx := next_req_ctx + 1; + if (next_req_ctx < num_ctx) { + T_next.start; + } + repeat; + } + [] GTPC.receive(tr_GTPC_MsgType(g_peer_c, createPDPContextResponse, ?)) -> value udc { + teic := oct2int(udc.gtpc.teid); + if (not match(teic, (1 .. num_ctx))) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + "Rx Unexpected TEIC"); + } + idx := teic - 1; + f_handle_create_req(ctx[idx], udc); + rx_resp_ctx := rx_resp_ctx + 1; + + dns1_addr := f_PCO_extract_proto(ctx[idx].pco_neg, '000d'O); + saddr := ctx[idx].eua.endUserAddress.endUserAddressIPv4.ipv4_address; + f_send_gtpu(ctx[idx], f_gen_icmpv4_echo(saddr, dns1_addr)); + repeat; + } + [] GTPU.receive(tr_GTPU_GPDU(g_peer_u, ?)) -> value udu { + var octetstring gpdu := udu.gtpu.gtpu_IEs.g_PDU_IEs.data; + var IPv4_packet ip4 := f_IPv4_dec(gpdu); + if (ip4.header.ver != 4) { + repeat; + } + var PDU_ICMP icmp4 := f_dec_PDU_ICMP(ip4.payload); + if (not match(icmp4, (tr_ICMPv4_ERP, tr_ICMPv4_DU))) { + repeat; + } + rx_pong := rx_pong + 1; + if (rx_pong < num_ctx) { + repeat; + } + setverdict(pass); + } + [] GTPC.receive { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Rx Unexpected GTPC"); } + [] GTPU.receive { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Rx Unexpected GTPU"); } + } + + /* Let's close them now: */ + next_req_ctx := 0; + rx_resp_ctx := 0; + T_next.start; + alt { + [DIAMETER_PROC.checkstate("Connected")] as_DIA_CCR(TERMINATION_REQUEST) { repeat; } + [] pingpong(); + [] T_next.timeout { + f_send_gtpc(ts_GTPC_DeletePDP(g_peer_c, g_c_seq_nr, ctx[next_req_ctx].teic_remote, ctx[next_req_ctx].nsapi, '1'B)); + next_req_ctx := next_req_ctx + 1; + if (next_req_ctx < num_ctx) { + T_next.start; + } + repeat; + } + [] GTPC.receive(tr_GTPC_MsgType(g_peer_c, deletePDPContextResponse, ?)) -> value udc { + teic := oct2int(udc.gtpc.teid); + if (not match(teic, (1 .. num_ctx))) { + Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, + "Rx Unexpected TEIC"); + } + rx_resp_ctx := rx_resp_ctx + 1; + if (rx_resp_ctx < num_ctx) { + repeat; + } + setverdict(pass); + } + [] GTPC.receive { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Rx Unexpected GTPC"); } + [] GTPU.receive { Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, "Rx Unexpected GTPU"); } + } + T_next.stop; + + T_default.stop; + setverdict(pass); + } + control { execute(TC_pdp4_act_deact()); execute(TC_pdp4_act_deact_ipcp()); @@ -1904,5 +2017,7 @@ execute(TC_act_deact_retrans_duplicate()); execute(TC_pdp_act_restart_ctr_echo()); + + execute(TC_lots_of_concurrent_pdp_ctx()); } } -- To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27347
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: Iab19963f8e869af8fe0c385abd0fd7bbd9221790 Gerrit-Change-Number: 27347 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-MessageType: merged
3 years, 3 months
1
0
0
0
Change in osmo-ttcn3-hacks[master]: ggsn: Introduce test TC_lots_of_concurrent_pdp_ctx
by pespin
pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27347
) Change subject: ggsn: Introduce test TC_lots_of_concurrent_pdp_ctx ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27347
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: Iab19963f8e869af8fe0c385abd0fd7bbd9221790 Gerrit-Change-Number: 27347 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Tue, 01 Mar 2022 10:51:02 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
3 years, 3 months
1
0
0
0
Change in docker-playground[master]: debian-*-jenkins: git clone from gerrit
by osmith
osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/docker-playground/+/27353
) Change subject: debian-*-jenkins: git clone from gerrit ...................................................................... debian-*-jenkins: git clone from gerrit Avoid occasional clone failures by replacing
https://git.osmocom.org
with
https://gerrit.osmocom.org
. Step 18/28 : RUN git clone
https://git.osmocom.org/osmo-ci
osmo-ci && cp -v $(find osmo-ci/scripts -maxdepth 1 -type f ) /usr/local/bin ---> Running in c1c0bc9fb861 Cloning into 'osmo-ci'... error: (curl_result = 56, http_code = 200, sha1 = ded2f31cbac2e7b0ae6c3c4147f4e21ab1ce9b98) error: Unable to find ded2f31cbac2e7b0ae6c3c4147f4e21ab1ce9b98 under
https://git.osmocom.org/osmo-ci
Cannot obtain needed tree ded2f31cbac2e7b0ae6c3c4147f4e21ab1ce9b98 while processing commit bff275075548c443596aa1eb80d784e4cd3c2231. error: fetch failed. Related: SYS#5857 Change-Id: I9ad8e5755c5d520ff33d85792a5a70da62d05253 --- M debian-buster-jenkins/Dockerfile M debian-stretch-jenkins/Dockerfile 2 files changed, 7 insertions(+), 7 deletions(-) git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/53/27353/1 diff --git a/debian-buster-jenkins/Dockerfile b/debian-buster-jenkins/Dockerfile index 2e3855b..0ea81fe 100644 --- a/debian-buster-jenkins/Dockerfile +++ b/debian-buster-jenkins/Dockerfile @@ -138,20 +138,20 @@ # Install osmo-python-tests for python2 (when building old tags again new releases) ARG OSMO_PYTHON2_TESTS_COMMIT=fb4b813d4df62b7b2445bdced961eb1847267eed ADD
http://git.osmocom.org/python/osmo-python-tests/patch/?id=$OSMO_PYTHON2_TES…
/tmp/osmo-python-tests2-commit -RUN git clone
https://git.osmocom.org/python/osmo-python-tests
osmo-python-tests2 && \ +RUN git clone
https://gerrit.osmocom.org/python/osmo-python-tests
osmo-python-tests2 && \ cd osmo-python-tests2 && \ git checkout $OSMO_PYTHON2_TESTS_COMMIT && \ python2 setup.py clean build install # Install osmo-python-tests for python3 ADD
http://git.osmocom.org/python/osmo-python-tests/patch
/tmp/osmo-python-tests3-commit -RUN git clone
https://git.osmocom.org/python/osmo-python-tests
osmo-python-tests3 && \ +RUN git clone
https://gerrit.osmocom.org/python/osmo-python-tests
osmo-python-tests3 && \ cd osmo-python-tests3 && \ python3 setup.py clean build install # Install osmo-ci.git/scripts to /usr/local/bin ADD
http://git.osmocom.org/osmo-ci/patch
/tmp/osmo-ci-commit -RUN git clone
https://git.osmocom.org/osmo-ci
osmo-ci && \ +RUN git clone
https://gerrit.osmocom.org/osmo-ci
osmo-ci && \ cp -v $(find osmo-ci/scripts \ -maxdepth 1 \ -type f ) \ @@ -159,7 +159,7 @@ # Install osmo-gsm-manuals to /opt/osmo-gsm-manuals ADD
http://git.osmocom.org/osmo-gsm-manuals/patch
/tmp/osmo-gsm-manuals-commit -RUN git -C /opt clone
https://git.osmocom.org/osmo-gsm-manuals
+RUN git -C /opt clone
https://gerrit.osmocom.org/osmo-gsm-manuals
# Set a UTF-8 locale RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ diff --git a/debian-stretch-jenkins/Dockerfile b/debian-stretch-jenkins/Dockerfile index e39ca4e..b5c36fb 100644 --- a/debian-stretch-jenkins/Dockerfile +++ b/debian-stretch-jenkins/Dockerfile @@ -140,20 +140,20 @@ # Install osmo-python-tests for python2 (when building old tags again new releases) ARG OSMO_PYTHON2_TESTS_COMMIT=fb4b813d4df62b7b2445bdced961eb1847267eed ADD
http://git.osmocom.org/python/osmo-python-tests/patch/?id=$OSMO_PYTHON2_TES…
/tmp/osmo-python-tests2-commit -RUN git clone
https://git.osmocom.org/python/osmo-python-tests
osmo-python-tests2 && \ +RUN git clone
https://gerrit.osmocom.org/python/osmo-python-tests
osmo-python-tests2 && \ cd osmo-python-tests2 && \ git checkout $OSMO_PYTHON2_TESTS_COMMIT && \ python2 setup.py clean build install # Install osmo-python-tests for python3 ADD
http://git.osmocom.org/python/osmo-python-tests/patch
/tmp/osmo-python-tests3-commit -RUN git clone
https://git.osmocom.org/python/osmo-python-tests
osmo-python-tests3 && \ +RUN git clone
https://gerrit.osmocom.org/python/osmo-python-tests
osmo-python-tests3 && \ cd osmo-python-tests3 && \ python3 setup.py clean build install # Install osmo-ci.git/scripts to /usr/local/bin ADD
http://git.osmocom.org/osmo-ci/patch
/tmp/osmo-ci-commit -RUN git clone
https://git.osmocom.org/osmo-ci
osmo-ci && \ +RUN git clone
https://gerrit.osmocom.org/osmo-ci
osmo-ci && \ cp -v $(find osmo-ci/scripts \ -maxdepth 1 \ -type f ) \ -- To view, visit
https://gerrit.osmocom.org/c/docker-playground/+/27353
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: I9ad8e5755c5d520ff33d85792a5a70da62d05253 Gerrit-Change-Number: 27353 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith(a)sysmocom.de> Gerrit-MessageType: newchange
3 years, 3 months
1
0
0
0
← Newer
1
...
185
186
187
188
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
Results per page:
10
25
50
100
200