LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2018, 03:12 AM   #1
ruffy91
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Rep: Reputation: Disabled
Raspberry Pi not receiving packets > 1472 Bytes


Hi,
I use a Raspberry Pi 3B+ with the latest rasbian and a Huawei E3372h 4G LTE Sitck in cdc_ether mode.

The stick presents itself as ethernet interface, has IP 192.168.8.1 and gives me the IP 192.168.8.100 via DHCP.

I can send packets of any size but only receive packets that are 1472 Bytes or smaller.
As soon as I receive a packet bigger than 1472 it is actually 0 bytes long according to tcpdump.

I have uploaded a pcap file of TCP traffic while running "sudo apt update" which is hanging on "Waiting for headers" here: https://filebin.net/32ipqghvpm7ejtv2

I also have tried diabling gso and gro for the E3372 interface, but it does not make a difference.

Can anyone help me finding the issue?
 
Old 09-20-2018, 04:05 AM   #2
ruffy91
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
I have set the TCP MSS to a fixed value via iptables and now I can get TCP connections:
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1400

So it seems to be incoming TCP fragmentation is not working.

How can I debug where the problem begins so that i can report a bug to the affected component?

Edit:
This seems to work for ICMP, and a few HTTP servers, but not for every TCP connection.
Why does this even affect ICMP messages?

Last edited by ruffy91; 09-20-2018 at 07:47 AM. Reason: New information
 
Old 09-25-2018, 02:42 PM   #3
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can set smaller interface MTU. What is your interface MTU?
 
1 members found this post helpful.
Old 09-26-2018, 01:08 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I think MTU also. There is a way to test the limit using ping if you wish. Been a while since I've seen that but modems were like that and I assume this is connecting like a modem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
UDP, linux and packets greater than 1500 bytes pabloski Linux - Networking 2 01-04-2011 07:25 AM
[SOLVED] Receiving UDP packets avishorp Linux - Networking 3 04-16-2010 05:56 AM
Multicasting not receiving packets :( culin Linux - Networking 2 09-27-2007 05:02 AM
Unable to ping with packets of size 1500 bytes aditya_halan Linux - Networking 1 08-03-2007 03:21 AM
kernel drops packets of size less than 48 bytes neelay1 Linux - Networking 1 07-16-2006 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration