Configuring LEDE router with a PPPoE Modem/Router

I'm using Archer C7 192.168.1.1
Dlink2730b 192.168.0.1
Both with 255.255.255.0

config queue
option verbosity '5'
option qdisc 'fq_codel'
option script 'simple.qos'
option linklayer 'none'
option enabled '1'
option interface 'pppoe-wan'
option download '5600'
option upload '500'
option debug_logging '1'
option qdisc_advanced '0'

I also tried cake w/ piece.of.cake, no change at all.
My actual internet speed is 572kbytes down/56kbytes up
but in practice i get 630kbytes down(Peak)/60kbytes up(Peak)

Of course,talking about a 5Megabits plan.

Ah, finally got it, That looks correct (but entails double NAT)

Okay, from /etc/config/sqm I see that you are running a pretty basic configuration that can be tailored much better to your link. Most of that is covered by https://lede-project.org/docs/howto/sqm but in short on an ATM link you have to deal with 9% encoding cost as well as weird ATM cell quantization effects, the best you can do is to tell sqm that you are using an ATM link by going to the "Link Layer Adaptation" tab in the sqm GUI and set the field labeled "https://lede-project.org/docs/howto/sqm" to "ATM..." that will take care of the static 9% loss as well as cell quantization. Now for this to work well you also need to select the correct overhead (Per Packet Overhead (byte):); a conservative vaue to start with would be 48 bytes (one full ATM cell payload); but if you have time try follow the instructions given at https://github.com/moeller0/ATM_overhead_detector to actually empirically deduce the per-packet-overhead on your link and put that value into the GUI field.

How did you measure these values and more importantly what are the sync values your modem reports? As the first things to get right is the applicable bandwidth and link layer adjustments, everything else, like selection of qdisc and script really are secondary (or rather only make sense after getting link layer and bandwidth approximately right).

But before you embark on this quest, please also post the output of:
tc -d qdisc
tc -s qdisc
tc class show dev pppoe-wan
tc class show dev ifb4pppoe-wan
to get an idea about the current starting point.

It would also be a good idea to record measurements along the way to document test whether/which configuration changes have hich effects. I would recommend to follow the advise given in https://forum.openwrt.org/t/sqm-qos-recommended-settings-for-the-dslreports-speedtest-bufferbloat-testing/2803 for which speedtest to use and how to configure that test.

Happy de-bloating!

Best Regards

Sorry for too many doubts,but my lan pc still with problems,I can't connect to some sites(netflix,microsoft,even lede-project.org)with my computer(timed out),can't leave it to get an automatic ip,otherwise it won't connect(I have to assign an IP)
Also,there are some services like uplay and discord,that I can't connect on all devices!
Probable my informations aren't that accurated,but I would like to fix that first!

P.S.:Is that correct?

Okay, you have no working IPv4 DNS servers on the archer, so expect issues for computers using DNS servers distributed via DHCP from that archer. For a test try to configure your PC to use 8.8.8.8 (google's dns service) instead of DHCP supplied DNS, this might work, if you actually have IPv4 connectivity at all. Please report back whether that worked out okay...
(I still believe the best for your setup would be to relegate the "modem" to pure modem duty and have your archer handle the PPPoE connection all by itself)

Best Regards

I cant even acess the router from my pc set to get automatic ip adress.

Which device is the PC having DHCP / DNS issues plugged into? * It should be plugged into one of the LAN ports on the back of the LEDE router, or a hub / switch that has a patch cable plugged into one of the LAN ports on the back of the LEDE router.

You have the LEDE Router setup as a (Static IP), not (PPoE).

Did you set the ISP Modem (Dlink) to ( Bridged ) mode ?

re: DNS on WiFi restricted:

Network -> Interfaces -> WAN [ Edit ]

Advanced Settings tab:

Uncheck: Use DNS Servers advertised by Peer,

Use custom DNS servers: add: 8.8.8.8, 8.8.4.4

see if that helps ..

Yes I did, but I found a fix the DNS issue, I was using a 17.1 build based on an snapshot,and i just used a sysupgrade to 17.1.2 and reseted the settings(No idea if the part of sysupgrade did something),now i just have the DHCP issue.

Is that a way for me to set a static IP to my computer from the router?

No, that is telling the WAN interface ( the one between your ISP modem and LEDE router ) to NOT use the ISP-advertised DNS servers, and instead use Google's DNS servers ( 8.8.8.8, 8.8.4.4 ).

The PC issue is separate, and confusing.

How is the PC physically cabled to the LAN topology ?
What Operating System is the PC running ?

That info. would help.

Lan1 of the router( CAT5 at the moment,i didnt had a better cable in hands,could it be the problem?)

Windows 10,I tried to do ipconfig /renew , /release , /registerdns , and nothing.

To be honest,I dont mind if I have to do this,I currently can acess both,router and modem from here.

@moeller0

From every download and upload,the max i can get is 630kbytes down/70kbytes up (Today I got 740kbytes peak from youtube).
My router sync values are:
Line Rate - Downstream (Kbps): 5664
Line Rate - Upstream (Kbps): 572

P.S.: I just found the edit post option

From the Windows [Start Menu] Icon,
Settings ( Gearbox ),

Network and Internet,
[ Change Connection Properties ],

Make this PC discoverable = On
Metered connection = Off

Use arrow on top left to return to prior screen,

[ Network and Sharing Center ] on right,

Connections: [ Local Area Connection ]
[ Details ]

IPv4 Address: ( should equal the Static IP you entered )
IPv4 Subnet Mask: should equal 255.255.255.0

Gateway, DHCP, DNS Servers should equal 192.168.1.1

[Close]

[ Properties ]

This connection uses the following items:
select:

Internet Protocol Version 4 ( TCP/IPv4 )

[ Properties ]

Obtain an IP address automatically = checked
Obtain DNS server address automatically = checked

[Ok], [Close], [Close], [ X ] to exit Network and Sharing Center,

Windows Start -> [ Power Icon ] -> Restart

^ That's what I would do, if there.

1 Like

To be honest, I have no clue how to use this,everytime I open it,the @echo pass too fast, so, I visualized it with notepad++,
and still having no clue how to execute it!

@moeller0

cat /etc/config/sqm

config queue 'eth1'
option qdisc_advanced '0'
option interface 'pppoe-wan'
option debug_logging '0'
option verbosity '5'
option linklayer 'atm'
option download '5500'
option enabled '1'
option upload '450'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option overhead '48'

tc -d qdisc

qdisc noqueue 0: dev lo root refcnt 2
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev eth1 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
qdisc noqueue 0: dev br-lan root refcnt 2
qdisc mq 0: dev wlan0 root
qdisc fq_codel 0: dev wlan0 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
qdisc fq_codel 0: dev wlan0 parent :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
qdisc cake 8007: dev pppoe-wan root refcnt 2 bandwidth 450Kbit besteffort triple-isolate rtt 100.0ms raw
linklayer atm overhead 48 mtu 2047 tsize 512
qdisc ingress ffff: dev pppoe-wan parent ffff:fff1 ----------------
qdisc cake 8008: dev ifb4pppoe-wan root refcnt 2 bandwidth 5500Kbit besteffort triple-isolate wash rtt 100.0ms raw
linklayer atm overhead 48 mtu 2047 tsize 512
qdisc noqueue 0: dev wlan1 root refcnt 2

tc -s qdisc

qdisc noqueue 0: dev lo root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
Sent 2217327 bytes 17651 pkt (dropped 0, overlimits 0 requeues 1)
backlog 0b 0p requeues 1
maxpacket 83 drop_overlimit 0 new_flow_count 9 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth1 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
Sent 4392474 bytes 9277 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc mq 0: dev wlan0 root
Sent 11799511 bytes 10515 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev wlan0 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
Sent 1964 bytes 14 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev wlan0 parent :2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev wlan0 parent :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
Sent 11797547 bytes 10501 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev wlan0 parent :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms ecn
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc cake 8007: dev pppoe-wan root refcnt 2 bandwidth 450Kbit besteffort triple-isolate rtt 100.0ms raw
Sent 3150465 bytes 16003 pkt (dropped 73, overlimits 14891 requeues 0)
backlog 0b 0p requeues 0
memory used: 124800b of 4Mb
capacity estimate: 450Kbit
Tin 0
thresh 450Kbit
target 40.4ms
interval 135.4ms
pk_delay 20.2ms
av_delay 3.2ms
sp_delay 50us
pkts 16076
bytes 3186742
way_inds 1342
way_miss 1296
way_cols 0
drops 73
marks 0
sp_flows 1
bk_flows 1
un_flows 0
max_len 7049

qdisc ingress ffff: dev pppoe-wan parent ffff:fff1 ----------------
Sent 15839748 bytes 18404 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc cake 8008: dev ifb4pppoe-wan root refcnt 2 bandwidth 5500Kbit besteffort triple-isolate wash rtt 100.0ms raw
Sent 18915806 bytes 18386 pkt (dropped 18, overlimits 13330 requeues 0)
backlog 0b 0p requeues 0
memory used: 17856b of 4Mb
capacity estimate: 5500Kbit
Tin 0
thresh 5500Kbit
target 5.0ms
interval 100.0ms
pk_delay 1.6ms
av_delay 581us
sp_delay 19us
pkts 18404
bytes 18946334
way_inds 363
way_miss 1256
way_cols 0
drops 18
marks 0
sp_flows 0
bk_flows 1
un_flows 0
max_len 1749

qdisc noqueue 0: dev wlan1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0

tc class show dev pppoe-wan

class cake 8007:25a parent 8007:

tc class show dev ifb4pppoe-wan

class cake 8008:289 parent 8008: