rate drop for HBP

options
Simon 4 years ago
parent 03f9f94570
commit 0dea25c302
No known key found for this signature in database
GPG Key ID: 6ACF11630B5D8F82

@ -2417,6 +2417,12 @@ class routerHBP(HBSYSTEM):
if CONFIG['REPORTS']['REPORT']: if CONFIG['REPORTS']['REPORT']:
self._report.send_bridgeEvent('VCSBK 3/4 DATA BLOCK,START,RX,{},{},{},{},{},{}'.format(self._system, int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), _slot, int_id(_dst_id)).encode(encoding='utf-8', errors='ignore')) self._report.send_bridgeEvent('VCSBK 3/4 DATA BLOCK,START,RX,{},{},{},{},{},{}'.format(self._system, int_id(_stream_id), int_id(_peer_id), int_id(_rf_src), _slot, int_id(_dst_id)).encode(encoding='utf-8', errors='ignore'))
#Packet rate limit
#Rate drop
if self.STATUS[_slot]['packets'] > 18 and (self.STATUS[_slot]['packets'] / self.STATUS[slot]['RX_START'] > 25):
logger.warning("(%s) *PacketControl* RATE DROP! Stream ID:, %s TGID: %s",self._system,int_id(_stream_id),int_id(_dst_id))
return
#Timeout #Timeout
if self.STATUS[_slot]['RX_START'] + 180 < pkt_time: if self.STATUS[_slot]['RX_START'] + 180 < pkt_time:
if 'LOOPLOG' not in self.STATUS[_slot] or not self.STATUS[_slot]['LOOPLOG']: if 'LOOPLOG' not in self.STATUS[_slot] or not self.STATUS[_slot]['LOOPLOG']:

Loading…
Cancel
Save

Powered by TurnKey Linux.