Modem Throttling Issue

Modem Throttling Issue SearchSearch
Author Message
ashot shahbazian
Frequent Contributor
Username: Animatele

Post Number: 87
Registered: 06-2004
Posted on Thursday, April 08, 2010 - 08:54 am:   

Bryce, Des:

Noticed what seems to be a bug: If DelayAfterSend=[msec] is used for a modem uplink and values are set from 1000 to 4000 - the modem's throttling outbound messages at proper intervals. But if the value is set to 5000 the delay would fluctuate between 18 and 23 seconds.

We've tried and confirmed it with two modems separately on the same server with moderate load on SMPP uplinks and low load on modems. 1000, 2000, 4000 and 5000 ms. were tested, but no values larger than 5000. The service was stopped-started after each configuration change. NowSMS version is 2009.12.08.

While it's a minor annoyance for us I thought it may cause trouble to other customers, so you may want to patch it.


Kind regards,
Ashot
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7904
Registered: 10-2002
Posted on Friday, April 09, 2010 - 09:43 pm:   

Hi Ashot,

I haven't been able to recreate this. I've tried delays of 5000 and 6000, and both worked properly, giving a 5 and 6 second delay, respectively.

I asked our engineers to look for problems in this area, but they haven't come up with anything.

I'd be curious to see an SMSDEBUG.LOG to see if it shows some other sort of error occurring.

-bn
ashot shahbazian
Frequent Contributor
Username: Animatele

Post Number: 89
Registered: 06-2004
Posted on Friday, April 09, 2010 - 10:28 pm:   

Hi Bryce,

Submitted with 4000 delay:

2010-04-09 00:48:12,48F40802.req,127.0.0.1,+79037220022,OK -- Modem #5,SubmitUser=ashot;Sender=+79031562378;Text="test"
2010-04-09 00:48:18,48F40803.req,127.0.0.1,+79037220022,OK -- Modem #5,SubmitUser=ashot;Sender=+79031562378;Text="test"
2010-04-09 00:48:25,48F40804.req,127.0.0.1,+79037220022,OK -- Modem #5,SubmitUser=ashot;Sender=+79031562378;Text="test"
2010-04-09 00:48:32,48F40805.req,127.0.0.1,+79037220022,OK -- Modem #5,SubmitUser=ashot;Sender=+79031562378;Text="test"
2010-04-09 00:48:38,48F40806.req,127.0.0.1,+79037220022,OK -- Modem #5,SubmitUser=ashot;Sender=+79031562378;Text="test"


Submitted with 5000 delay, we can see the same modem responding with about 15 seconds delays:

00:58:17:135 [5] ThreadProcessModem: Processing 48F40949.req...
00:58:17:166 [5] ThreadProcessModem: OUT: AT+CMGS=41

00:58:17:213 [5] ThreadProcessModem: IN:
>
00:58:17:213 [5] ThreadProcessModem: OUT: 0001490B910573842297F5000020AB98ED86A3E572B1194CA6036541A0FC1B04A297C3ED3708240E E7C3


00:58:20:323 [5] ThreadProcessModem: +CMGS: 57
00:58:25:526 [5] ThreadProcessModem: Processing 48F40D3D.req...
00:58:25:526 [5] ThreadProcessModem: OUT: AT+CMGS=151

00:58:25:744 [5] ThreadProcessModem: IN:
>
00:58:25:744 [5] ThreadProcessModem: OUT: 0001530B910573035984F000009DAB582D06B3DD6EB4198CA60315F3A03C08FE9683E2F532C8FD06 B1CBA0F1DB4D2FCFE9E139280C628741E6B038FD668741F030285E2F83D86510B93C07D5DD61D0F8 0D4F8741E432881DD683F2617B19442E83D86110BC5E96D3C3207219C40E83C6E17918347EBBE9E5 393DCC2E83E06F39285E2F83E86550394C0F83F2E176D84D7E839A61B23C4D06
00:58:40:307 [5] ThreadProcessModem: +CMGS: 58

00:58:45:494 [5] ThreadProcessModem: Processing 48F40D6A.req...
00:58:45:494 [5] ThreadProcessModem: OUT: AT+CMGS=18

00:58:45:713 [5] ThreadProcessModem: IN:
>
00:58:45:713 [5] ThreadProcessModem: OUT: 00215A0B919730270220F2000005F4F29C1E03
00:59:00:119 [5] ThreadProcessModem: +CMGS: 59

There's nothing in this thread to indicate any errors, except this record shortly after modem initialisation:

00:58:12:073 [5] ThreadProcessModem: Error: ERROR - Modem Response (2):
00:58:13:073 [5] ModemTest: Modem #5

Messages were delivering at long intervals in-between, also the first one submitted more than a minute after a batch of 5 was submitted.

NowSMS version is 2009.12.08. Also note that these modems are also receiving messages, at an average rate of perhaps 5-10 per minute. No heavy receiving was noticed during the second send attempt.

Modem receive mode is set to Direct Phase 2+.

Funny indeed.

Kind regards,
Ashot
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1998
Registered: 08-2008
Posted on Monday, April 12, 2010 - 05:22 pm:   

Hi Ashot,

This is very strange. It is the modem that is triggering the extra 15 second delay. NowSMS starts the send process after 5 seconds, as it should ... but the modem takes 15 seconds to send the message ... instead of the normal 2 to 3 seconds.

I don't know why this would happen. I don't know if it is some sort of operator specific or modem specific situation. In our tests here, we haven't seen any behaviour like this.

--
Des
NowSMS Support
ashot shahbazian
Frequent Contributor
Username: Animatele

Post Number: 90
Registered: 06-2004
Posted on Monday, April 12, 2010 - 06:56 pm:   

Hi Des,

You are right: it does look like the modem's delaying the responses, but why only if the throttling's set to 5 sec. remains a mystery. We can consistently recreate the scenario on all 16 modems..

Too bad I can't make PortMon work on this server for some reason. I'd have checked the serial exchange for spurious commands..

We're fine with 4 sec. delays, let's consider it network-specific.

Kind regards,
Ashot