[sr-dev] [kamailio/kamailio] dispatcher: congestion control refactoring (#2521)

Julien Chavanton notifications at github.com
Wed Oct 21 18:08:52 CEST 2020


testing notes :

all GW congested: 
```
ds_update_latency(): all gw congested[138][47]latency_avg[249.74][sip:192.0.2.28]code[200]rweight[138/46:48]cms[46]
ds_update_latency(): all gw congested[138][46]latency_avg[248.59][sip:192.0.2.29]code[200]rweight[138/46:48]cms[46]
ds_update_latency(): all gw congested[138][46]latency_avg[248.63][sip:192.0.2.30]code[200]rweight[138/46:48]cms[46]
```
all congested bellow max threshold:
```
ds_update_latency(): [121]latency[300]avg[280.96][sip:192.0.2.30]code[200]rweight[1]cms[19]
ds_update_latency(): [121]latency[300]avg[280.89][sip:192.0.2.28]code[200]rweight[1]cms[19]
ds_update_latency(): [121]latency[300]avg[280.93][sip:192.0.2.29]code[200]rweight[1]cms[19]
```
all GW congested with one that was trained :
```
ds_update_latency(): all gw congested[245][500010]latency_avg[1.20][sip:192.0.2.30]code[200]rweight[245/121:32]cms[121]
ds_update_latency(): all gw congested[245][40]latency_avg[60.80][sip:192.0.2.28]code[200]rweight[245/62:63]cms[62]
ds_update_latency(): all gw congested[245][40]latency_avg[60.85][sip:192.0.2.29]code[200]rweight[245/62:63]cms[62]
```
2/3 congested with one that was trained :
```
ds_update_latency(): [58]latency[1]avg[78.40][sip:192.0.2.28]code[200]rweight[4]cms[16]
ds_update_latency(): [58]latency[1]avg[78.43][sip:192.0.2.29]code[200]rweight[4]cms[16]
ds_update_latency(): [500029]latency[0]avg[1.21][sip:192.0.2.30]code[200]rweight[0]cms[20]
```

one GW configured with weight=0
```
	SET: {
			ID: 1
			TARGETS: {
				DEST: {
					URI: sip:192.0.2.30
					FLAGS: AP
					PRIORITY: 10
					ATTRS: {
						BODY: rweight=20;weight=20;cc=1
						DUID: 
						MAXLOAD: 0
						WEIGHT: 20
						RWEIGHT: 8
						SOCKET: 
					}
					LATENCY: {
						AVG: 66.625000
						STD: 76.593000
						EST: 79.207000
						MAX: 151
						TIMEOUT: 0
					}
				}
				DEST: {
					URI: sip:192.0.2.28
					FLAGS: AP
					PRIORITY: 10
					ATTRS: {
						BODY: rweight=20;weight=20;cc=1
						DUID: 
						MAXLOAD: 0
						WEIGHT: 20
						RWEIGHT: 8
						SOCKET: 
					}
					LATENCY: {
						AVG: 66.562000
						STD: 76.650000
						EST: 79.154000
						MAX: 151
						TIMEOUT: 0
					}
				}
				DEST: {
					URI: sip:192.0.2.29
					FLAGS: AP
					PRIORITY: 10
					ATTRS: {
						BODY: rweight=20;cc=1
						DUID: 
						MAXLOAD: 0
						WEIGHT: 0
						RWEIGHT: 20
						SOCKET: 
					}
					LATENCY: {
						AVG: 66.437000
						STD: 76.764000
						EST: 79.048000
						MAX: 151
						TIMEOUT: 0
					}
				}
			}
		}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2521#issuecomment-713686722
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201021/9ecc1f16/attachment-0001.htm>


More information about the sr-dev mailing list