Hi All Please disregard the previous email. I have managed to test for a queue on a real smsc. Although I did set the throughput to an integer value and not a float. I don't feel like testing it again (I am still deleting the 20 or so messages I sent to myself).
Regards, On Wed, Aug 18, 2010 at 10:07 AM, brett skinner <[email protected]>wrote: > Hi Nikos > > We already have all of messages load balanced by an upstream application. > When the messages hit Kannel we are forcing them to go via a certain smsc > using the smsc flag and the allowed-smsc-id in the config file. We have > considered rather just letting Kannel do it but upstream application was > used with another product previously which didn't load balance. We need to > add Kannel to the existing mix and then phase out the others as our Kannel > implementation becomes stable. So it is on the roadmap but is not urgent. > > One thing that I may have noticed during my testing is that I can't seem to > create a queue on a real smsc bind and not the fake one. If I set the > throughput flag on to 0.05 (msg/sec, according to UG this is float value) > and I then send some messages and check the status page I do not see a queue > for that SMSC. If I look in the logs I see messages about the throughput > being exceeded but it then seems to send anyway. Am I missing something? > > 2010-08-17 17:38:16 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:17 [4912] [5] INFO: Client connected from <127.0.0.1> > 2010-08-17 17:38:17 [4912] [5] DEBUG: Started thread 16 > (gw/bb_boxc.c:function) > 2010-08-17 17:38:17 [4912] [16] DEBUG: Thread 16 (gw/bb_boxc.c:function) > maps to pid 4912. > 2010-08-17 17:38:17 [4912] [16] DEBUG: Started thread 17 > (gw/bb_boxc.c:boxc_sender) > 2010-08-17 17:38:17 [4912] [17] DEBUG: Thread 17 (gw/bb_boxc.c:boxc_sender) > maps to pid 4912. > 2010-08-17 17:38:20 [4912] [16] DEBUG: boxc_receiver: sms received > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Sending PDU: > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP PDU 0x2331e90 dump: > 2010-08-17 17:38:20 [4912] [6] DEBUG: type_name: submit_sm > 2010-08-17 17:38:20 [4912] [6] DEBUG: command_id: 4 = 0x00000004 > 2010-08-17 17:38:20 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: sequence_number: 3 = 0x00000003 > 2010-08-17 17:38:20 [4912] [6] DEBUG: service_type: NULL > 2010-08-17 17:38:20 [4912] [6] DEBUG: source_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:20 [4912] [6] DEBUG: source_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:20 [4912] [6] DEBUG: source_addr: "YYYY" > 2010-08-17 17:38:20 [4912] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:20 [4912] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:20 [4912] [6] DEBUG: destination_addr: "XXX" > 2010-08-17 17:38:20 [4912] [6] DEBUG: esm_class: 3 = 0x00000003 > 2010-08-17 17:38:20 [4912] [6] DEBUG: protocol_id: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: priority_flag: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: schedule_delivery_time: NULL > 2010-08-17 17:38:20 [4912] [6] DEBUG: validity_period: NULL > 2010-08-17 17:38:20 [4912] [6] DEBUG: registered_delivery: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: data_coding: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: sm_length: 19 = 0x00000013 > 2010-08-17 17:38:20 [4912] [6] DEBUG: short_message: "foo" > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:20 [4912] [16] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Got PDU: > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP PDU 0x232f260 dump: > 2010-08-17 17:38:20 [4912] [6] DEBUG: type_name: submit_sm_resp > 2010-08-17 17:38:20 [4912] [6] DEBUG: command_id: 2147483652 = 0x80000004 > 2010-08-17 17:38:20 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:20 [4912] [6] DEBUG: sequence_number: 3 = 0x00000003 > 2010-08-17 17:38:20 [4912] [6] DEBUG: message_id: "20081717383293102" > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:20 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:21 [4912] [16] DEBUG: boxc_receiver: sms received > 2010-08-17 17:38:21 [4912] [16] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Sending PDU: > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP PDU 0x232f260 dump: > 2010-08-17 17:38:21 [4912] [6] DEBUG: type_name: submit_sm > 2010-08-17 17:38:21 [4912] [6] DEBUG: command_id: 4 = 0x00000004 > 2010-08-17 17:38:21 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: sequence_number: 4 = 0x00000004 > 2010-08-17 17:38:21 [4912] [6] DEBUG: service_type: NULL > 2010-08-17 17:38:21 [4912] [6] DEBUG: source_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:21 [4912] [6] DEBUG: source_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:21 [4912] [6] DEBUG: source_addr: "YYYY" > 2010-08-17 17:38:21 [4912] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:21 [4912] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:21 [4912] [6] DEBUG: destination_addr: "XXX" > 2010-08-17 17:38:21 [4912] [6] DEBUG: esm_class: 3 = 0x00000003 > 2010-08-17 17:38:21 [4912] [6] DEBUG: protocol_id: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: priority_flag: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: schedule_delivery_time: NULL > 2010-08-17 17:38:21 [4912] [6] DEBUG: validity_period: NULL > 2010-08-17 17:38:21 [4912] [6] DEBUG: registered_delivery: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: data_coding: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: sm_length: 5 = 0x00000005 > 2010-08-17 17:38:21 [4912] [6] DEBUG: short_message: "cat" > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Got PDU: > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP PDU 0x23281a0 dump: > 2010-08-17 17:38:21 [4912] [6] DEBUG: type_name: submit_sm_resp > 2010-08-17 17:38:21 [4912] [6] DEBUG: command_id: 2147483652 = 0x80000004 > 2010-08-17 17:38:21 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:21 [4912] [6] DEBUG: sequence_number: 4 = 0x00000004 > 2010-08-17 17:38:21 [4912] [6] DEBUG: message_id: "20081717383401266" > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:21 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:22 [4912] [16] DEBUG: boxc_receiver: sms received > 2010-08-17 17:38:22 [4912] [16] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Sending PDU: > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP PDU 0x232eda0 dump: > 2010-08-17 17:38:22 [4912] [6] DEBUG: type_name: submit_sm > 2010-08-17 17:38:22 [4912] [6] DEBUG: command_id: 4 = 0x00000004 > 2010-08-17 17:38:22 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: sequence_number: 5 = 0x00000005 > 2010-08-17 17:38:22 [4912] [6] DEBUG: service_type: NULL > 2010-08-17 17:38:22 [4912] [6] DEBUG: source_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:22 [4912] [6] DEBUG: source_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:22 [4912] [6] DEBUG: source_addr: "YYYY" > 2010-08-17 17:38:22 [4912] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:22 [4912] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:22 [4912] [6] DEBUG: destination_addr: "XXX" > 2010-08-17 17:38:22 [4912] [6] DEBUG: esm_class: 3 = 0x00000003 > 2010-08-17 17:38:22 [4912] [6] DEBUG: protocol_id: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: priority_flag: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: schedule_delivery_time: NULL > 2010-08-17 17:38:22 [4912] [6] DEBUG: validity_period: NULL > 2010-08-17 17:38:22 [4912] [6] DEBUG: registered_delivery: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: data_coding: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: sm_length: 4 = 0x00000004 > 2010-08-17 17:38:22 [4912] [6] DEBUG: short_message: "Frog" > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Got PDU: > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP PDU 0x2328320 dump: > 2010-08-17 17:38:22 [4912] [6] DEBUG: type_name: submit_sm_resp > 2010-08-17 17:38:22 [4912] [6] DEBUG: command_id: 2147483652 = 0x80000004 > 2010-08-17 17:38:22 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:22 [4912] [6] DEBUG: sequence_number: 5 = 0x00000005 > 2010-08-17 17:38:22 [4912] [6] DEBUG: message_id: "20081717383504647" > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:22 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:23 [4912] [16] DEBUG: boxc_receiver: sms received > 2010-08-17 17:38:23 [4912] [16] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2010-08-17 17:38:23 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:23 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Sending PDU: > 2010-08-17 17:38:23 [4912] [6] DEBUG: SMPP PDU 0x232f260 dump: > 2010-08-17 17:38:23 [4912] [6] DEBUG: type_name: submit_sm > 2010-08-17 17:38:23 [4912] [6] DEBUG: command_id: 4 = 0x00000004 > 2010-08-17 17:38:23 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: sequence_number: 6 = 0x00000006 > 2010-08-17 17:38:23 [4912] [6] DEBUG: service_type: NULL > 2010-08-17 17:38:23 [4912] [6] DEBUG: source_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:23 [4912] [6] DEBUG: source_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:23 [4912] [6] DEBUG: source_addr: "YYYY" > 2010-08-17 17:38:23 [4912] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:23 [4912] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:23 [4912] [6] DEBUG: destination_addr: "XXX" > 2010-08-17 17:38:23 [4912] [6] DEBUG: esm_class: 3 = 0x00000003 > 2010-08-17 17:38:23 [4912] [6] DEBUG: protocol_id: 0 = 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: priority_flag: 0 = 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: schedule_delivery_time: NULL > 2010-08-17 17:38:23 [4912] [6] DEBUG: validity_period: NULL > 2010-08-17 17:38:23 [4912] [6] DEBUG: registered_delivery: 0 = 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: data_coding: 0 = 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2010-08-17 17:38:23 [4912] [6] DEBUG: sm_length: 4 = 0x00000004 > 2010-08-17 17:38:23 [4912] [6] DEBUG: short_message: "lost" > 2010-08-17 17:38:23 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:23 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:24 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:24 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Got PDU: > 2010-08-17 17:38:24 [4912] [6] DEBUG: SMPP PDU 0x232f260 dump: > 2010-08-17 17:38:24 [4912] [6] DEBUG: type_name: submit_sm_resp > 2010-08-17 17:38:24 [4912] [6] DEBUG: command_id: 2147483652 = 0x80000004 > 2010-08-17 17:38:24 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:24 [4912] [6] DEBUG: sequence_number: 6 = 0x00000006 > 2010-08-17 17:38:24 [4912] [6] DEBUG: message_id: "20081717383633022" > 2010-08-17 17:38:24 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:24 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:25 [4912] [16] DEBUG: boxc_receiver: sms received > 2010-08-17 17:38:25 [4912] [16] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2010-08-17 17:38:25 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput > (0.00,0.05) > 2010-08-17 17:38:25 [4912] [6] DEBUG: SMPP[SMSC-XXX]: Sending PDU: > 2010-08-17 17:38:25 [4912] [6] DEBUG: SMPP PDU 0x232f260 dump: > 2010-08-17 17:38:25 [4912] [6] DEBUG: type_name: submit_sm > 2010-08-17 17:38:25 [4912] [6] DEBUG: command_id: 4 = 0x00000004 > 2010-08-17 17:38:25 [4912] [6] DEBUG: command_status: 0 = 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: sequence_number: 7 = 0x00000007 > 2010-08-17 17:38:25 [4912] [6] DEBUG: service_type: NULL > 2010-08-17 17:38:25 [4912] [6] DEBUG: source_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:25 [4912] [6] DEBUG: source_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:25 [4912] [6] DEBUG: source_addr: "YYYY" > 2010-08-17 17:38:25 [4912] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 > 2010-08-17 17:38:25 [4912] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 > 2010-08-17 17:38:25 [4912] [6] DEBUG: destination_addr: "XXX" > 2010-08-17 17:38:25 [4912] [6] DEBUG: esm_class: 3 = 0x00000003 > 2010-08-17 17:38:25 [4912] [6] DEBUG: protocol_id: 0 = 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: priority_flag: 0 = 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: schedule_delivery_time: NULL > 2010-08-17 17:38:25 [4912] [6] DEBUG: validity_period: NULL > 2010-08-17 17:38:25 [4912] [6] DEBUG: registered_delivery: 0 = 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: data_coding: 0 = 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 > 2010-08-17 17:38:25 [4912] [6] DEBUG: sm_length: 6 = 0x00000006 > 2010-08-17 17:38:25 [4912] [6] DEBUG: short_message: "muppet" > 2010-08-17 17:38:25 [4912] [6] DEBUG: SMPP PDU dump ends. > 2010-08-17 17:38:25 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded (1.00,0.05) > 2010-08-17 17:38:25 [4912] [6] DEBUG: SMPP[SMSC-XXX]: throughput limit > exceeded > > It seems like I have been able to send 5 messages in 5 seconds which 1 > msg/sec and I set it to 0.05. I could be missing the obvious. > > Regards, > > > 2010/8/18 Nikos Balkanas <[email protected]> > > Don't worry, >> >> bearerbox does smsc load balance, and everything else been equal it will >> send through SMSc with mallest queue. >> >> >> BR, >> Nikos >> ----- Original Message ----- From: brett skinner >> To: Rene Kluwen >> Cc: Users >> Sent: Tuesday, August 17, 2010 8:04 PM >> Subject: Re: Queue Size from status page >> >> >> >> What does the queue size for the bearerbox represent? I thought this was >> the total in the system and would be the summation of the individual SMSCs? >> >> >> Maybe I should start off with the goal. What we are trying to do is to >> make sure that we don't give Kannel too much work to do. So we want to be >> able to back off until the "queue size" (the number of SMSs it still needs >> to send on to SMSCs) has fallen to a certain level and then submit again >> until it reaches an upper level and then back off again. Which queue size >> should I be using for this? >> >> >> Regards, >> >> >> >> On Tue, Aug 17, 2010 at 6:05 PM, Rene Kluwen <[email protected]> >> wrote: >> >> I think you guessed the answer yourself already. You have to add the queue >> sizes. >> >> Queue size in bearerbox is one. Then you have a queue size in smsbox… and >> one in the smsc driver as well. >> >> == Rene >> >> >> From: [email protected] [mailto:[email protected]] On >> Behalf Of brett skinner >> Sent: Tuesday, 17 August, 2010 17:32 >> To: Users >> Subject: Queue Size from status page >> >> Hi >> >> I have looked through the user guide for further explanation of the >> various queue sizes from the status page but I have found none. Please view >> the attached jpg. I have circled two queue sizes in red. I have been using >> the top queue size because I was under the impression that this was the >> queue size for all messages waiting to be sent out by Kannel. The bottom >> queue size appears to be the only one that moves. In order to test this I >> had to attach a fake smsc, set the throughput to 1 and bombarded it with >> messages. >> >> Am I correct and there should be a total queue size for Kannel? Or do I >> have to go through each individual SMSC and add the queue sizes together? >> >> Regards, >> > >
