How to uses these dmt2 commands to minimize delay and packet loss for gaming?

hello
i have modem which connected with openwrt that support dmt commands which are as follow :

`usage: wan tsarm dma_wrr on|off
usage: wan tsarm txprqmax [p0 size] [p1 size] [p2 size] [p3 size]
usage: wan tsarm txbufmax [size]
usage: wan tsarm txDescrDump [0 ~ 10 (10=CC) ]
usage: wan tsarm rxDescrDump [0 ~ 10 (10=CC) ]
usage: wan tsarm hw_mpoa [on|off]
usage: wan tsarm mbuf_dump [on|off]
usage: wan tsarm txpri [on|off]
usage: wan tsarm hw_vlan_untag [on|off]
usage: wan tcif set coc us [uspcb] [paccu_low] [paccu_high]
usage: wan hwdmt afe set txtxf <value> 
usage: wan hwdmt afe set rxhpf <value> 
usage: wan hwdmt afe set txgain <value> 
usage: wan hwdmt afe set txatten <value> 
usage: wan hwdmt afe set dacatten <value> 
usage: wan hwdmt afe set rxsf [on|off|free] 
usage: wan ghs set nearvendorid <value> 
usage: wan ghs set usifft <us_ifft_size>  <us_ifft_fill_type,1=complex conjurate/2=fill zero>
usage: wan ghs set toneselect <1=t9+t37/ 2=t17+t45/ 3=t25+t53/ 4=1+2/ 5=2+3/ 6=1+3/ 0=1+2+3> 
usage: wan dmt db set  [off/auto/db_index] 
usage:wan dmt db tlb [value]
usage: wan dmt pilot [cnt] [pause opt]
usage: wan dmt aoc bitswap [on/off] [on/off]
usage: wan dmt set dbgflag [value]
usage: wan dmt set tcm [on|off]
usage: wan dmt set snrmoffset <value[(+/-)db*512]>
usage: wan dmt set pilotdata t64_value t_pilot_value
usage: wan dmt set minsnrm <value> 
usage: wan dmt set pilottone <value> 
usage: wan dmt set db rxfiltertype <value> 
usage: wan dmt set txfiltgain <value> 
usage: wan dmt set txfiltertype <value> 
usage: wan dmt set txrvbtones <start tone> <end tone>
usage: wan dmt set  medleytone <start tone> <stop tone>
usage: wan dmt set attenoffset <vaule>
usage: wan dmt set snroffset <value[(+/-)db*512]> 
usage: wan dmt set syncflag <on/off>
usage: wan dmt set agcvref <value1> <value2> <value3> <value4>
usage: wan dmt set  chdlyold <on/off>
usage: wan dmt2 set tcm [on|off]
usage: wan dmt2 set pilotdata [on|off]
usage: wan dmt2 set pilotretrain [0/1/2/3]
usage: wan dmt2 set largeD 0/1/2
usage: wan dmt2 set gainenhance [on/off]
usage: wan dmt2 set forcelink [on|off] [min_snrm]
usage: wan dmt2 set txfltrgain [value]
usage: wan dmt2 set rxfltrgain [value]
usage: wan dmt2 set txfiltertype <value> 
usage: wan dmt2 set rxfiltertype <value> 
usage: wan dmt2 set sync [on|off] [sync position] [txrxsample] [0~2047]
usage: wan dmt2 set updatesync [on|off]
usage: wan dmt2 set pcb [dspcb] [uspcb]
usage: wan dmt2 set inp [INP value *100]
usage: wan dmt2 set Slowerbound [value]
usage: wan dmt2 set blackout [start_tone>31] [end_tone<512]
usage: wan dmt2 set Rs off/on/[Max R_value]
usage: wan dmt2 set depth [value]
usage: wan dmt2 set snrmoffset [Intl*512] [Fast*512]
usage: wan dmt2 set attenoffset [value] 
usage: wan dmt2 set crcrelink [value] 
usage: wan dmt2 set pilot [tone]
usage: wan dmt2 set us_maxrate [value]
usage: wan dmt2 set chdly_offset [value]
usage: wan dmt2 set linkstate [0|3]
usage: wan dmt2 db set [off/auto/db_index]
usage: wan dmt2 db tlb [tlb ID]
usage: wan dmt2 db hp [opt]
usage: wan dmt2 set insthres tone_num =%d%%, mse_thres1 =0x%lx, mse_thres2=0x%lx
usage: wan dmt2 set medley threshold [snr threshold] [tone ratio]`

my connection now is adsl2 i noticed when i changed these values my connection improved a little bit:

wan dmt2 set insthres 9999999999999999999 0xf3 0xf6 0x00000000000000001 0x101010101010 255
wan dmt2 db set 3
wan dmt2 set chdly_offset 255
wan dmt2 set pilot 75
wan dmt2 set us_maxrate 5000
wan dmt2 set depth 45
wan tsarm txbufmax 45
wan ghs set lengthfactor 42.5 45 59 69
wan dmt aoc bitswap on off
wan hwdmt afe set rxhpf 23.2

i want to make connection good for gaming is it possible using these commands ?

Do you need help to translate those commands into the OpenWrt equivalent? Do you need help sending those commands from an OpenWrt router to your modem? ...?

no i want to use these command on my modem (edimax) to reduce packet loss and delay do you know what values are the best to do that ?

Does your modem run OpenWrt?

no it run in bridge mode for openwrt ?

can u help me ?

Sorry, but I still do not understand the whole picture, what devices do you own, how are they configured and connected, and what is exactly the issue...

i have modem edimax which connected to rj11 adsl2 that modem is bridged to openwrt x86 and my internet connection is pppoe i want if it possible to adjust adsl signal using dmt commands to improve gaming connection

so you want to change the config of your bridged adsl2 modem, from a x86_64 running openwrt ?

no i can telnet my modem directly i want to uses this commands

`usage: wan tsarm dma_wrr on|off
usage: wan tsarm txprqmax [p0 size] [p1 size] [p2 size] [p3 size]
usage: wan tsarm txbufmax [size]
usage: wan tsarm txDescrDump [0 ~ 10 (10=CC) ]
usage: wan tsarm rxDescrDump [0 ~ 10 (10=CC) ]
usage: wan tsarm hw_mpoa [on|off]
usage: wan tsarm mbuf_dump [on|off]
usage: wan tsarm txpri [on|off]
usage: wan tsarm hw_vlan_untag [on|off]
usage: wan tcif set coc us [uspcb] [paccu_low] [paccu_high]
usage: wan hwdmt afe set txtxf <value> 
usage: wan hwdmt afe set rxhpf <value> 
usage: wan hwdmt afe set txgain <value> 
usage: wan hwdmt afe set txatten <value> 
usage: wan hwdmt afe set dacatten <value> 
usage: wan hwdmt afe set rxsf [on|off|free] 
usage: wan ghs set nearvendorid <value> 
usage: wan ghs set usifft <us_ifft_size>  <us_ifft_fill_type,1=complex conjurate/2=fill zero>
usage: wan ghs set toneselect <1=t9+t37/ 2=t17+t45/ 3=t25+t53/ 4=1+2/ 5=2+3/ 6=1+3/ 0=1+2+3> 
usage: wan dmt db set  [off/auto/db_index] 
usage:wan dmt db tlb [value]
usage: wan dmt pilot [cnt] [pause opt]
usage: wan dmt aoc bitswap [on/off] [on/off]
usage: wan dmt set dbgflag [value]
usage: wan dmt set tcm [on|off]
usage: wan dmt set snrmoffset <value[(+/-)db*512]>
usage: wan dmt set pilotdata t64_value t_pilot_value
usage: wan dmt set minsnrm <value> 
usage: wan dmt set pilottone <value> 
usage: wan dmt set db rxfiltertype <value> 
usage: wan dmt set txfiltgain <value> 
usage: wan dmt set txfiltertype <value> 
usage: wan dmt set txrvbtones <start tone> <end tone>
usage: wan dmt set  medleytone <start tone> <stop tone>
usage: wan dmt set attenoffset <vaule>
usage: wan dmt set snroffset <value[(+/-)db*512]> 
usage: wan dmt set syncflag <on/off>
usage: wan dmt set agcvref <value1> <value2> <value3> <value4>
usage: wan dmt set  chdlyold <on/off>
usage: wan dmt2 set tcm [on|off]
usage: wan dmt2 set pilotdata [on|off]
usage: wan dmt2 set pilotretrain [0/1/2/3]
usage: wan dmt2 set largeD 0/1/2
usage: wan dmt2 set gainenhance [on/off]
usage: wan dmt2 set forcelink [on|off] [min_snrm]
usage: wan dmt2 set txfltrgain [value]
usage: wan dmt2 set rxfltrgain [value]
usage: wan dmt2 set txfiltertype <value> 
usage: wan dmt2 set rxfiltertype <value> 
usage: wan dmt2 set sync [on|off] [sync position] [txrxsample] [0~2047]
usage: wan dmt2 set updatesync [on|off]
usage: wan dmt2 set pcb [dspcb] [uspcb]
usage: wan dmt2 set inp [INP value *100]
usage: wan dmt2 set Slowerbound [value]
usage: wan dmt2 set blackout [start_tone>31] [end_tone<512]
usage: wan dmt2 set Rs off/on/[Max R_value]
usage: wan dmt2 set depth [value]
usage: wan dmt2 set snrmoffset [Intl*512] [Fast*512]
usage: wan dmt2 set attenoffset [value] 
usage: wan dmt2 set crcrelink [value] 
usage: wan dmt2 set pilot [tone]
usage: wan dmt2 set us_maxrate [value]
usage: wan dmt2 set chdly_offset [value]
usage: wan dmt2 set linkstate [0|3]
usage: wan dmt2 db set [off/auto/db_index]
usage: wan dmt2 db tlb [tlb ID]
usage: wan dmt2 db hp [opt]
usage: wan dmt2 set insthres tone_num =%d%%, mse_thres1 =0x%lx, mse_thres2=0x%lx
usage: wan dmt2 set medley threshold [snr threshold] [tone ratio]`

to get better connection for real-time application especially gaming

and you want us to do what ?
tell you which parameters to change to optimize the link for gaming ?

yes if it possible

Typically these require changes in opposite directions. Packet-loss can be reduced by introducing redundancy, but that redundancy typically requires either to transmit more data (e.g. for forward error correction (FEC)) and/or to spread out each packet such that bursty noisy is less likely to wipe out a full packet (e.g. by interleaving packets such, that each time slot of interest, say 1 ms, contains fragments of multiple packets, so that if such a 1ms segment of the dsl transmission can not be decoded, each packets remaining fragment contain enough FEC information to allow reconstruction of the packets in spite of the missing bits). Interleaving increases the time it takes to transmit a full Ipacket, if you interleave 10 packets (conceptually, interleaving is not performed on packet boundaries) each packet takes (time to transmit one full packet without interleaving) * 10. As you see this increases latency...
There is a more modern scheme, called G.INP or retransmissions, in which there is considerable less interleaving (and hence less fixed latency increase) but packets are acknoledged over the DSL link and are potentially resent if the receiving side signals a bad DTU was received. The advantage of that scheme is, lower fixed latency, if there are no noise issues, but increased latency/jitter if retransmissions are necessary. Whether that is a win for gaming really depends on how rare such retransmission events are.. most games deal better with increased fixed latency than an increased RTT-variance/jitter.

1 Like

I think this question is too specific to your modem and connection, it is not related to OpenWrt at all, I do not think you will get much help here.

4 Likes