Other Parts Discussed in Thread: TDA2, AM3357
Tool/software: TI-RTOS
Hi,
Please find more about my product description in the below link.
Is there any option to configure TI NDK to support Piggybacking method for ACK packets?
Regards
Bala
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hi,
Please find more about my product description in the below link.
Is there any option to configure TI NDK to support Piggybacking method for ACK packets?
Regards
Bala
Hello Steve,
The overall idea is not to disable the ACK packet rather the ACK packet should be appended with Modbus Packet response.
Please look at the diagram of Modbus communication below. Since the Modbus TCP query will have the response packet always, so the ACK packet can be appended to the response packet and response packet ACk will be appended to the next Modbus query packet. This can be continued till end of socket close. if we do so, we are expecting network stack bandwidth can be reduced and increase Modbus transaction rate.
Please not that my third party Modbus library will not support TCP ACK packet and only it will respond for the Modbus query.
Regards
Bala
Hello Steve,
as you suggested, we done the modification in line number 697 of tcpout.c as below.Steven Connell said:
In this function, you can see that an ACK packet will have the TF_ACKNOW or TF_DELACK flags set:
// around line 543
if( pt->t_flags & (TF_ACKNOW|TF_DELACK) )
tcps.SndAcks++; /* Peek ACKS sent */
So what you could do is use these flags in a similar if statement to filter out the call that actually sends the ACK packets out, IPTxPacket() around line 697.
/* Send the packet */
if( pt->t_flags & (TF_ACKNOW|TF_DELACK) )
error = IPTxPacket( pPkt,
SockGetOptionFlags(pt->hSock) & FLG_IPTX_SOSUPPORTED );
But still we are getting the ACK packet separately. Look at the wireshark capture below.
Please suggest how we can delay the ACK packets in NDK?
Regards
Bala