Change in osmo-bsc[master]: stats: Add granularity to SDCCH/TCH/LU activity.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Jan 11 18:57:03 UTC 2021


laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/22103 )

Change subject: stats: Add granularity to SDCCH/TCH/LU activity.
......................................................................


Patch Set 1:

(4 comments)

https://gerrit.osmocom.org/c/osmo-bsc/+/22103/1/src/osmo-bsc/assignment_fsm.c 
File src/osmo-bsc/assignment_fsm.c:

https://gerrit.osmocom.org/c/osmo-bsc/+/22103/1/src/osmo-bsc/assignment_fsm.c@433 
PS1, Line 433: case GSM_LCHAN_SDCCH:
             : 		rate_ctr_inc(&bts->bts_ctrs->ctr[BTS_CTR_ASSIGNMENT_ATTEMPTED_SDCCH]);
             : 		break;
             : 	case GSM_LCHAN_TCH_H:
             : 	case GSM_LCHAN_TCH_F:
             : 		rate_ctr_inc(&bts->bts_ctrs->ctr[BTS_CTR_ASSIGNMENT_ATTEMPTED_TCH]);
             : 		break;
I think here conn->lchan still points to the old channel type, so you are incrementing the counters of what the _old_ channel was before the new channel was assigned.  I don't think it's what you want?


https://gerrit.osmocom.org/c/osmo-bsc/+/22103/1/src/osmo-bsc/assignment_fsm.c@477 
PS1, Line 477: switch (conn->lchan->type) {
             : 				case GSM_LCHAN_SDCCH:
             : 					rate_ctr_inc(&bts->bts_ctrs->ctr[BTS_CTR_ASSIGNMENT_COMPLETED_SDCCH]);
             : 					break;
             : 				case GSM_LCHAN_TCH_H:
             : 				case GSM_LCHAN_TCH_F:
             : 					rate_ctr_inc(&bts->bts_ctrs->ctr[BTS_CTR_ASSIGNMENT_COMPLETED_TCH]);
             : 					break;
             : 				default:
             : 					break;
             : 				}
I think I would incremenet both the attempted + completed counters here.  This is about the case where the existing channel type is sufficient to fulfill the MSCs assignment request, and hence no actual assignment happens on the Um interface.


https://gerrit.osmocom.org/c/osmo-bsc/+/22103/1/src/osmo-bsc/assignment_fsm.c@543 
PS1, Line 543: case GSM48_CMODE_SIGN:
             : 			rate_ctr_inc(&bts->bts_ctrs->ctr[BTS_CTR_ASSIGNMENT_NO_CHANNEL_SDCCH]);
             : 			break;
             : 		case GSM48_CMODE_SPEECH_V1:
             : 		case GSM48_CMODE_SPEECH_EFR:
             : 		case GSM48_CMODE_SPEECH_AMR:
             : 			rate_ctr_inc(&bts->bts_ctrs->ctr[BTS_CTR_ASSIGNMENT_NO_CHANNEL_TCH]);
             : 			break;
the layer3 (04.08) channel mode does not have a 1:1 mapping to channel types.

For example, it is perfectly legal to assign a TCH in SIGN mode.  Your counting would be wrong in this situation, as you'd account it as SDCCH.


https://gerrit.osmocom.org/c/osmo-bsc/+/22103/1/src/osmo-bsc/osmo_bsc_filter.c 
File src/osmo-bsc/osmo_bsc_filter.c:

https://gerrit.osmocom.org/c/osmo-bsc/+/22103/1/src/osmo-bsc/osmo_bsc_filter.c@122 
PS1, Line 122: case GSM48_MT_MM_LOC_UPD_REQUEST:
             : 		rate_ctr_inc(&conn->lchan->ts->trx->bts->bts_ctrs->ctr[BTS_CTR_LOCATION_UPDATE_REQUEST]);
             : 		break;
at least the comment on top of bsc_scan_msc_msg() hints that this function is only called in the downlink direction. Hence you would never count the LU request?  Do you see the counter incrementing?



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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I4df275e4770c5ff3643c79ba828e736986f8bb47
Gerrit-Change-Number: 22103
Gerrit-PatchSet: 1
Gerrit-Owner: iedemam <michael at kapsulate.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge at osmocom.org>
Gerrit-Comment-Date: Mon, 11 Jan 2021 18:57:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210111/699cf582/attachment.htm>


More information about the gerrit-log mailing list