Traffic statistics for IPv6-in-IPv4 tunnel interface wrong
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a home router running Linux (padavan firmware for Mi router, Linux chinarouter 3.4.113 #1 SMP Wed Dec 5 21:51:10 MSK 2018 mips GNU/Linux)
I use vnstat to get an idea about my traffic. I have a public IPv4 address and a IPv6 tunnel from Hurricane Electric
For the IPv6-in-IPv4 tunnel there is a new network interface sit1 once I configure it in the web interface.
The traffic for sit1 was always very low compared to eth3 which is my WAN. From my understanding, eth3 should count all the IPv4 packages, which include IPv6 in IPV4 and sit1 should count all the IPv6 packages.
Recently I bothered to find out why my IPv6 usage is so low.
I made the following experiment: Look at the Interface-Counters before a download:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49821437 errors:0 dropped:14 overruns:0 frame:0
TX packets:54758897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37023415692 (34.4 GiB) TX bytes:55150028613 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2001097 errors:0 dropped:0 overruns:0 frame:0
TX packets:3271313 errors:271 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2460798146 (2.2 GiB) TX bytes:320441957 (305.5 MiB)
Fetch a 1GiB file using IPv6: curl -6 -v -o /dev/null "https://speed.hetzner.de/1GB.bin"
From my understanding, both sit1 and eth3 should have at least 1Gib higher RX bytes. (I didn't disconnect clients and there is overhead, but it shouldn't be less than 1Gib increase)
If I do the download on the router, everything is as expected:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50761446 errors:0 dropped:14 overruns:0 frame:0
TX packets:54884163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38364966524 (35.7 GiB) TX bytes:55171965706 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2766591 errors:0 dropped:0 overruns:0 frame:0
TX packets:3375338 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3567587311 (3.3 GiB) TX bytes:328452467 (313.2 MiB)
But if I start the same download again on a raspberry pi connected to the router via ethernet, the counter for sit1 isn't increased:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51852793 errors:0 dropped:14 overruns:0 frame:0
TX packets:55384798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39898448676 (37.1 GiB) TX bytes:55241235039 (51.4 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2771816 errors:0 dropped:0 overruns:0 frame:0
TX packets:3825390 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3570431460 (3.3 GiB) TX bytes:362000911 (345.2 MiB)
What is the reason for that? Why is traffic from the local IPv6 LAN to the IPv6 Internet not using the sit1 tunnel interface on the router?
linux networking router ipv6 network-traffic
add a comment |
I have a home router running Linux (padavan firmware for Mi router, Linux chinarouter 3.4.113 #1 SMP Wed Dec 5 21:51:10 MSK 2018 mips GNU/Linux)
I use vnstat to get an idea about my traffic. I have a public IPv4 address and a IPv6 tunnel from Hurricane Electric
For the IPv6-in-IPv4 tunnel there is a new network interface sit1 once I configure it in the web interface.
The traffic for sit1 was always very low compared to eth3 which is my WAN. From my understanding, eth3 should count all the IPv4 packages, which include IPv6 in IPV4 and sit1 should count all the IPv6 packages.
Recently I bothered to find out why my IPv6 usage is so low.
I made the following experiment: Look at the Interface-Counters before a download:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49821437 errors:0 dropped:14 overruns:0 frame:0
TX packets:54758897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37023415692 (34.4 GiB) TX bytes:55150028613 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2001097 errors:0 dropped:0 overruns:0 frame:0
TX packets:3271313 errors:271 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2460798146 (2.2 GiB) TX bytes:320441957 (305.5 MiB)
Fetch a 1GiB file using IPv6: curl -6 -v -o /dev/null "https://speed.hetzner.de/1GB.bin"
From my understanding, both sit1 and eth3 should have at least 1Gib higher RX bytes. (I didn't disconnect clients and there is overhead, but it shouldn't be less than 1Gib increase)
If I do the download on the router, everything is as expected:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50761446 errors:0 dropped:14 overruns:0 frame:0
TX packets:54884163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38364966524 (35.7 GiB) TX bytes:55171965706 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2766591 errors:0 dropped:0 overruns:0 frame:0
TX packets:3375338 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3567587311 (3.3 GiB) TX bytes:328452467 (313.2 MiB)
But if I start the same download again on a raspberry pi connected to the router via ethernet, the counter for sit1 isn't increased:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51852793 errors:0 dropped:14 overruns:0 frame:0
TX packets:55384798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39898448676 (37.1 GiB) TX bytes:55241235039 (51.4 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2771816 errors:0 dropped:0 overruns:0 frame:0
TX packets:3825390 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3570431460 (3.3 GiB) TX bytes:362000911 (345.2 MiB)
What is the reason for that? Why is traffic from the local IPv6 LAN to the IPv6 Internet not using the sit1 tunnel interface on the router?
linux networking router ipv6 network-traffic
add a comment |
I have a home router running Linux (padavan firmware for Mi router, Linux chinarouter 3.4.113 #1 SMP Wed Dec 5 21:51:10 MSK 2018 mips GNU/Linux)
I use vnstat to get an idea about my traffic. I have a public IPv4 address and a IPv6 tunnel from Hurricane Electric
For the IPv6-in-IPv4 tunnel there is a new network interface sit1 once I configure it in the web interface.
The traffic for sit1 was always very low compared to eth3 which is my WAN. From my understanding, eth3 should count all the IPv4 packages, which include IPv6 in IPV4 and sit1 should count all the IPv6 packages.
Recently I bothered to find out why my IPv6 usage is so low.
I made the following experiment: Look at the Interface-Counters before a download:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49821437 errors:0 dropped:14 overruns:0 frame:0
TX packets:54758897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37023415692 (34.4 GiB) TX bytes:55150028613 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2001097 errors:0 dropped:0 overruns:0 frame:0
TX packets:3271313 errors:271 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2460798146 (2.2 GiB) TX bytes:320441957 (305.5 MiB)
Fetch a 1GiB file using IPv6: curl -6 -v -o /dev/null "https://speed.hetzner.de/1GB.bin"
From my understanding, both sit1 and eth3 should have at least 1Gib higher RX bytes. (I didn't disconnect clients and there is overhead, but it shouldn't be less than 1Gib increase)
If I do the download on the router, everything is as expected:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50761446 errors:0 dropped:14 overruns:0 frame:0
TX packets:54884163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38364966524 (35.7 GiB) TX bytes:55171965706 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2766591 errors:0 dropped:0 overruns:0 frame:0
TX packets:3375338 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3567587311 (3.3 GiB) TX bytes:328452467 (313.2 MiB)
But if I start the same download again on a raspberry pi connected to the router via ethernet, the counter for sit1 isn't increased:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51852793 errors:0 dropped:14 overruns:0 frame:0
TX packets:55384798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39898448676 (37.1 GiB) TX bytes:55241235039 (51.4 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2771816 errors:0 dropped:0 overruns:0 frame:0
TX packets:3825390 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3570431460 (3.3 GiB) TX bytes:362000911 (345.2 MiB)
What is the reason for that? Why is traffic from the local IPv6 LAN to the IPv6 Internet not using the sit1 tunnel interface on the router?
linux networking router ipv6 network-traffic
I have a home router running Linux (padavan firmware for Mi router, Linux chinarouter 3.4.113 #1 SMP Wed Dec 5 21:51:10 MSK 2018 mips GNU/Linux)
I use vnstat to get an idea about my traffic. I have a public IPv4 address and a IPv6 tunnel from Hurricane Electric
For the IPv6-in-IPv4 tunnel there is a new network interface sit1 once I configure it in the web interface.
The traffic for sit1 was always very low compared to eth3 which is my WAN. From my understanding, eth3 should count all the IPv4 packages, which include IPv6 in IPV4 and sit1 should count all the IPv6 packages.
Recently I bothered to find out why my IPv6 usage is so low.
I made the following experiment: Look at the Interface-Counters before a download:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49821437 errors:0 dropped:14 overruns:0 frame:0
TX packets:54758897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37023415692 (34.4 GiB) TX bytes:55150028613 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2001097 errors:0 dropped:0 overruns:0 frame:0
TX packets:3271313 errors:271 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2460798146 (2.2 GiB) TX bytes:320441957 (305.5 MiB)
Fetch a 1GiB file using IPv6: curl -6 -v -o /dev/null "https://speed.hetzner.de/1GB.bin"
From my understanding, both sit1 and eth3 should have at least 1Gib higher RX bytes. (I didn't disconnect clients and there is overhead, but it shouldn't be less than 1Gib increase)
If I do the download on the router, everything is as expected:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50761446 errors:0 dropped:14 overruns:0 frame:0
TX packets:54884163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38364966524 (35.7 GiB) TX bytes:55171965706 (51.3 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2766591 errors:0 dropped:0 overruns:0 frame:0
TX packets:3375338 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3567587311 (3.3 GiB) TX bytes:328452467 (313.2 MiB)
But if I start the same download again on a raspberry pi connected to the router via ethernet, the counter for sit1 isn't increased:
eth3 Link encap:Ethernet HWaddr 88:70:FF:FF:36:00
inet addr:X.X.X.X Bcast:X.X.X.X Mask:255.255.255.248
inet6 addr: fe80::8a70:8cff:fee3:3600/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51852793 errors:0 dropped:14 overruns:0 frame:0
TX packets:55384798 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39898448676 (37.1 GiB) TX bytes:55241235039 (51.4 GiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:X:X:X::2/64 Scope:Global
inet6 addr: fe80::5cf8:209c/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1452 Metric:1
RX packets:2771816 errors:0 dropped:0 overruns:0 frame:0
TX packets:3825390 errors:272 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3570431460 (3.3 GiB) TX bytes:362000911 (345.2 MiB)
What is the reason for that? Why is traffic from the local IPv6 LAN to the IPv6 Internet not using the sit1 tunnel interface on the router?
linux networking router ipv6 network-traffic
linux networking router ipv6 network-traffic
asked Jan 31 at 13:11
JosefJosef
1,206916
1,206916
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400558%2ftraffic-statistics-for-ipv6-in-ipv4-tunnel-interface-wrong%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400558%2ftraffic-statistics-for-ipv6-in-ipv4-tunnel-interface-wrong%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown