aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/gprs/gprs_test.ok
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-23 17:53:27 -0400
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-06 18:52:05 +0100
commitfaf1f64a2d0a54d37616a8bec8691346ab792cde (patch)
treecf9f5052348eae7207bceeb9803967686ca3e692 /openbsc/tests/gprs/gprs_test.ok
parent26d0fe3c89042ed4008903dbe12c5110d8f9fc48 (diff)
gprs: Honor GSM 04.64 8.4.2 Receipt of unacknowledged information
GSM 04.64 8.4.2 asks to ignore UI frames if the DLCI is not known, or if the "(V(UR)- 32) <= N(U) < V(UR)". E.g. if we want to have V(UR) == 511 and this frame is dropped, we would ignore N(U)'s 0 to 510. Calculate the delta. The code is based on Jonathan Santos's "LLC UI window" fix but the issue was discovered independly.
Diffstat (limited to 'openbsc/tests/gprs/gprs_test.ok')
-rw-r--r--openbsc/tests/gprs/gprs_test.ok16
1 files changed, 16 insertions, 0 deletions
diff --git a/openbsc/tests/gprs/gprs_test.ok b/openbsc/tests/gprs/gprs_test.ok
new file mode 100644
index 000000000..39d37c120
--- /dev/null
+++ b/openbsc/tests/gprs/gprs_test.ok
@@ -0,0 +1,16 @@
+Testing gprs_llc_is_retransmit.
+N(U) = 0, V(UR) = 0 => new
+N(U) = 0, V(UR) = 1 => retransmit
+N(U) = 0, V(UR) = 1 => retransmit
+N(U) = 511, V(UR) = 1 => retransmit
+N(U) = 483, V(UR) = 1 => retransmit
+N(U) = 482, V(UR) = 1 => retransmit
+N(U) = 481, V(UR) = 1 => new
+N(U) = 0, V(UR) = 240 => new
+N(U) = 0, V(UR) = 511 => new
+N(U) = 1, V(UR) = 511 => new
+N(U) = 511, V(UR) = 511 => new
+N(U) = 510, V(UR) = 511 => retransmit
+N(U) = 481, V(UR) = 511 => retransmit
+N(U) = 479, V(UR) = 511 => new
+Done.