<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>packet &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/packet/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Wed, 11 Sep 2013 14:30:45 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>[Linux] Wireshark 抓到超過 MTU 的封包.</title>
		<link>https://blog.richliu.com/2013/09/11/1505/linux-wireshark-%e6%8a%93%e5%88%b0%e8%b6%85%e9%81%8e-mtu-%e7%9a%84%e5%b0%81%e5%8c%85/</link>
					<comments>https://blog.richliu.com/2013/09/11/1505/linux-wireshark-%e6%8a%93%e5%88%b0%e8%b6%85%e9%81%8e-mtu-%e7%9a%84%e5%b0%81%e5%8c%85/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 11 Sep 2013 14:30:45 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[ethtool]]></category>
		<category><![CDATA[gro]]></category>
		<category><![CDATA[offload]]></category>
		<category><![CDATA[packet]]></category>
		<category><![CDATA[wireshark]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=1505</guid>

					<description><![CDATA[<p>在 Linux Wireshark 有時候會抓到比 MTU Size 更大的封包, ex: 2336, 516 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2013/09/11/1505/linux-wireshark-%e6%8a%93%e5%88%b0%e8%b6%85%e9%81%8e-mtu-%e7%9a%84%e5%b0%81%e5%8c%85/">[Linux] Wireshark 抓到超過 MTU 的封包.</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>在 Linux Wireshark 有時候會抓到比 MTU Size 更大的封包, ex: 2336, 5160 .. etc.</p>
<p>這個問題源自於 Linux NIC driver enable GRO (Generic Receive Offload), 這功能會將數個封包組合成一個大封包以增加速度.</p>
<p><span id="more-1505"></span>這時可以用 ethtool 去修改網路卡的參數</p>
<p>使用 ethtool -k &lt;interface&gt; 查看狀況.</p>
<p>[TEXT]</p>
<p># ethtool -k eth0<br />
Features for eth0:<br />
rx-checksumming: on<br />
tx-checksumming: off<br />
tx-checksum-ipv4: off<br />
tx-checksum-ip-generic: off [fixed]<br />
tx-checksum-ipv6: off [fixed]<br />
tx-checksum-fcoe-crc: off [fixed]<br />
tx-checksum-sctp: off [fixed]<br />
scatter-gather: off<br />
tx-scatter-gather: off<br />
tx-scatter-gather-fraglist: off [fixed]<br />
tcp-segmentation-offload: off<br />
tx-tcp-segmentation: off<br />
tx-tcp-ecn-segmentation: off [fixed]<br />
tx-tcp6-segmentation: off [fixed]<br />
udp-fragmentation-offload: off [fixed]<br />
generic-segmentation-offload: off [requested on]<br />
generic-receive-offload: on<br />
large-receive-offload: off [fixed]<br />
rx-vlan-offload: on<br />
tx-vlan-offload: on<br />
ntuple-filters: off [fixed]<br />
receive-hashing: off [fixed]<br />
highdma: off [fixed]<br />
rx-vlan-filter: off [fixed]<br />
vlan-challenged: off [fixed]<br />
tx-lockless: off [fixed]<br />
netns-local: off [fixed]<br />
tx-gso-robust: off [fixed]<br />
tx-fcoe-segmentation: off [fixed]<br />
fcoe-mtu: off [fixed]<br />
tx-nocache-copy: off<br />
loopback: off [fixed]<br />
rx-fcs: off<br />
rx-all: off<br />
[/TEXT]</p>
<p>我們發現 generic-receive-offload: on<br />
然後可以用這個命令<br />
# ethtool &#8211;offload eth0 gro off<br />
關掉GRO, 這樣抓下來的封包就會正常了.</p>
<p>ref.</p>
<p><a href="http://www.wireshark.org/lists/wireshark-users/201206/msg00076.html" target="_blank" rel="noopener">Re: [Wireshark-users] wireshark sees jumbo TCP packets in linux</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2013/09/11/1505/linux-wireshark-%e6%8a%93%e5%88%b0%e8%b6%85%e9%81%8e-mtu-%e7%9a%84%e5%b0%81%e5%8c%85/">[Linux] Wireshark 抓到超過 MTU 的封包.</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2013/09/11/1505/linux-wireshark-%e6%8a%93%e5%88%b0%e8%b6%85%e9%81%8e-mtu-%e7%9a%84%e5%b0%81%e5%8c%85/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
