<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tip on The Official Wireshark Blog</title>
    <link>https://blog.wireshark.org/categories/tip/</link>
    <description>Recent content in Tip on The Official Wireshark Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 11 Jan 2013 23:58:10 +0000</lastBuildDate><atom:link href="https://blog.wireshark.org/categories/tip/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Troubleshooting the hidden dangers of TCP’s Nagle algorithm and delayed acknowledgement</title>
      <link>https://blog.wireshark.org/2013/01/troubleshooting-the-hidden-dangers-of-tcps-nagle-algorithm-and-delayed-acknowledgement/</link>
      <pubDate>Fri, 11 Jan 2013 23:58:10 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2013/01/troubleshooting-the-hidden-dangers-of-tcps-nagle-algorithm-and-delayed-acknowledgement/</guid>
      <description>&lt;p&gt;As we all know, TCP/IP is a great protocol suite.  However, there are times when it can become the bottleneck.  This is especially true if you use TCP/IP for real time transactions where small data sizes are the norm (think financial institutions).  In this session, I’ll show you why Nagle algorithm and delayed acknowledgement was developed.  But more importantly, I’ll highlight the unintended consequences when the two features interact – badly – with each other.  After watching this session, you will be able to spot the hidden dangers of using TCP/IP for real time transactions.   Enjoy, and as always, I would really appreciate your feedback and suggestions. Here is the video:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://www.youtube.com/watch?v=2CMueBcQNtk&amp;amp;feature=share&amp;amp;list=PL18B4C1339C54900A&#34;&gt;http://www.youtube.com/watch?v=2CMueBcQNtk&amp;amp;feature=share&amp;amp;list=PL18B4C1339C54900A&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And as always, any and all feedback and suggestion are welcome.  Thank you and Enjoy!&lt;/p&gt;
&lt;p&gt;Hansang Bae&lt;/p&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments &lt;a href=&#34;#comments&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&#34;comment-by-credible58-on-2013-01-13-235732-0000&#34;&gt;Comment by credible58 on 2013-01-13 23:57:32 +0000 &lt;a href=&#34;#comment-by-credible58-on-2013-01-13-235732-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Great video, Hansang.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-01-14-125306-0000&#34;&gt;Comment by Hansang Bae on 2013-01-14 12:53:06 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-01-14-125306-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;@credible58, thank you! If you have any ideas for future sessions, by all means, please let me know.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-jasper-bongertz-on-2013-01-21-064643-0000&#34;&gt;Comment by Jasper Bongertz on 2013-01-21 06:46:43 +0000 &lt;a href=&#34;#comment-by-jasper-bongertz-on-2013-01-21-064643-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Nice presentation, Hansang, as usual. The only thing that I might have added to the slides would haven been an animation of what would be different &lt;strong&gt;without&lt;/strong&gt; the push flags.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-01-21-071754-0000&#34;&gt;Comment by Hansang Bae on 2013-01-21 07:17:54 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-01-21-071754-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Ah, good point. I removed some popup hints, quizzes etc. because youtube doesn’t support it. That would have been a good one, especially since I talk about it on the PPT. BTW, I just spent an hour anonymizing an upcoming CIFS troubleshooting scenario. What a pain that was! 🙂&lt;/p&gt;
&lt;h3 id=&#34;comment-by-andrew-on-2013-01-23-125227-0000&#34;&gt;Comment by Andrew on 2013-01-23 12:52:27 +0000 &lt;a href=&#34;#comment-by-andrew-on-2013-01-23-125227-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Great presentation, you gave a very clear explanation of the rules on the message sequence chart that made understanding the actual packet trace easy. I also like that you made the packet trace available.&lt;/p&gt;
&lt;p&gt;I’m left with one question though, why does packet #7 in the trace get to go immediately? This packet is only 226 bytes long so isn’t an MSS and there is unacknowledged data in flight (the bytes in #4, #5 and #6) so even though the Push bit is set in #7 my read of the Nagle rules on your slide #4 is that the only way #7 can be sent is if the Nagle override timeout expired? Yet the time between packet #7 and #6 is 16us which means the override timer cannot have expired. I’m presumably missing something though?&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-01-24-162017-0000&#34;&gt;Comment by Hansang Bae on 2013-01-24 16:20:17 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-01-24-162017-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Andrew,&lt;br&gt;
Give me a day or two. I’m on the road and will be back this weekend. I will reply when I’m back in the office. thanks&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-01-29-130652-0000&#34;&gt;Comment by Hansang Bae on 2013-01-29 13:06:52 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-01-29-130652-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Andrew,&lt;br&gt;
I’m glad you picked up on it. There are other small nuances in this trace that I didn’t get into . I didn’t delve into them just yet because this was more of an intro. 20/20 hindsight, I think it might have been better to tackle the bread and butter “nagle/delayed-ack” case first. But I’m very happy that you picked up on the fact that 10.10.10.10 probably has Nagle turned off. Another user Aaron also contacted me about packet #7! So I’m very happy that you guys are picking up on the small nuances of protocol analysis!&lt;/p&gt;
&lt;p&gt;There are other oddities in the trace, and I may come back to it after a few more sessions.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hai-wanxue-on-2013-01-30-012840-0000&#34;&gt;Comment by Hai Wanxue on 2013-01-30 01:28:40 +0000 &lt;a href=&#34;#comment-by-hai-wanxue-on-2013-01-30-012840-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Great session.&lt;br&gt;
I wrote something about TCP Nagle algorithm and Delayed ACK before in Chinese.&lt;br&gt;
&lt;a href=&#34;http://wenku.baidu.com/view/fbfda71aa300a6c30c229f99.html&#34; rel=&#34;nofollow ugc&#34;&gt;&lt;a href=&#34;http://wenku.baidu.com/view/fbfda71aa300a6c30c229f99.html&#34;&gt;http://wenku.baidu.com/view/fbfda71aa300a6c30c229f99.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-01-30-080045-0000&#34;&gt;Comment by Hansang Bae on 2013-01-30 08:00:45 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-01-30-080045-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Hai,&lt;br&gt;
Thanks. Please feel free to download the presentation and pcap files and use it to your heart’s content! I see your presentation was much more thorough, was it for a class you were teaching? I can’t read it (if it was Korean, I could! 🙂 ) but I see enough TCP related acronyms to get the feel of it.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Hansang&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hai-wanxue-on-2013-01-30-184959-0000&#34;&gt;Comment by Hai Wanxue on 2013-01-30 18:49:59 +0000 &lt;a href=&#34;#comment-by-hai-wanxue-on-2013-01-30-184959-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Hansang,&lt;br&gt;
I am working at one company for technology consultant.&lt;br&gt;
Writing it only as case because I often encountered them at work.&lt;br&gt;
Thanks.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-anonymous-coward-on-2013-02-05-173339-0000&#34;&gt;Comment by Anonymous Coward on 2013-02-05 17:33:39 +0000 &lt;a href=&#34;#comment-by-anonymous-coward-on-2013-02-05-173339-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;These retransmissions are killing me!&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-02-05-212325-0000&#34;&gt;Comment by Hansang Bae on 2013-02-05 21:23:25 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-02-05-212325-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;That’s pretty funny, K! 🙂 Sorry folks, that’s a little insider joke!&lt;/p&gt;
&lt;h3 id=&#34;comment-by-jaspreet-on-2013-02-19-231853-0000&#34;&gt;Comment by jaspreet on 2013-02-19 23:18:53 +0000 &lt;a href=&#34;#comment-by-jaspreet-on-2013-02-19-231853-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Very very knowledgeable video. thanks for all the efforts taken to create this good stuff!&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-02-20-082040-0000&#34;&gt;Comment by Hansang Bae on 2013-02-20 08:20:40 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-02-20-082040-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;It’s my pleasure jaspreet! Glad you found it useful.&lt;/p&gt;
&lt;p&gt;thnx&lt;/p&gt;
&lt;p&gt;Hansang&lt;/p&gt;
&lt;h3 id=&#34;comment-by-krishnayeddula-on-2013-03-06-193411-0000&#34;&gt;Comment by krishnayeddula on 2013-03-06 19:34:11 +0000 &lt;a href=&#34;#comment-by-krishnayeddula-on-2013-03-06-193411-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Superb Video. It does nothing but enhances the Zeal to learn. That bus example was simple yet powerful.&lt;/p&gt;
&lt;p&gt;Hansang,&lt;br&gt;
People are thirsty here.Some more please.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-hansang-bae-on-2013-03-09-183337-0000&#34;&gt;Comment by Hansang Bae on 2013-03-09 18:33:37 +0000 &lt;a href=&#34;#comment-by-hansang-bae-on-2013-03-09-183337-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;@krishnayeddula, @Cyril, @Beulah, @Money..&lt;br&gt;
Thank you. Another video will be coming out shortly. I’m glad that my passion for protocol analysis is coming through! 🙂&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Looking forward to Sharkfest ’11</title>
      <link>https://blog.wireshark.org/2011/05/looking-forward-to-sharkfest-11/</link>
      <pubDate>Thu, 12 May 2011 21:57:20 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2011/05/looking-forward-to-sharkfest-11/</guid>
      <description>&lt;p&gt;I’ve been looking over the session schedule for &lt;a href=&#34;http://sharkfest.wireshark.org/&#34;&gt;Sharkfest ’11&lt;/a&gt;. Once again Janice and Sheri have created an event which guarantees a wealth of knowledge and insight for everyone attending.&lt;/p&gt;
&lt;h3 id=&#34;what-to-expect&#34;&gt;What to expect &lt;a href=&#34;#what-to-expect&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Sharkfest is small. This is on purpose. We limit the size of the conference in order to allow more one-on-one communication between the attendees and presenters.&lt;/p&gt;
&lt;p&gt;It has a high knowledge density. Our strategy is to gather together a bunch of people who are excited about Wireshark and protocol analysis, and know what the heck they’re talking about. We do our best to make sure the presentations focus on usable information with a minimum of fluff.&lt;/p&gt;
&lt;h3 id=&#34;how-to-get-the-most-out-of-sharkfest&#34;&gt;How to get the most out of Sharkfest &lt;a href=&#34;#how-to-get-the-most-out-of-sharkfest&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Sharkfest is active, not passive. Mingle. Compare notes. Many of the attendees are Wireshark power users, but many are not. Everyone has something insightful to share. The worst thing you can do is keep to yourself.&lt;/p&gt;
&lt;p&gt;For the past three years I’ve had the opportunity to witness the top people in protocol analysis exchanging and sharing ideas. I look forward to seeing the same thing this year. See you there.&lt;/p&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments &lt;a href=&#34;#comments&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&#34;comment-by-madinah-on-2011-06-01-085143-0000&#34;&gt;Comment by madinah on 2011-06-01 08:51:43 +0000 &lt;a href=&#34;#comment-by-madinah-on-2011-06-01-085143-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;please, you know how to use wireshark&lt;/p&gt;
&lt;p&gt;and how to read ports from wireshark&lt;/p&gt;
&lt;h3 id=&#34;comment-by-madinah-on-2011-06-01-085805-0000&#34;&gt;Comment by madinah on 2011-06-01 08:58:05 +0000 &lt;a href=&#34;#comment-by-madinah-on-2011-06-01-085805-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;please, you know how to use wireshark&lt;/p&gt;
&lt;p&gt;and how to read ports from wireshark&lt;/p&gt;
&lt;p&gt;send step using wireshark&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Running Wireshark as You</title>
      <link>https://blog.wireshark.org/2010/02/running-wireshark-as-you/</link>
      <pubDate>Thu, 04 Feb 2010 20:11:57 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2010/02/running-wireshark-as-you/</guid>
      <description>&lt;p&gt;Running Wireshark on Linux involves an interesting challenge&lt;sup&gt;1&lt;/sup&gt;: Capturing packets requires root access, but Wireshark is &lt;a href=&#34;http://www.wireshark.org/download/automated/sloccount.txt&#34;&gt;big program&lt;/a&gt; and we strongly recommend against running it with elevated privileges. On Linux it’s common to see Wireshark running as root, but this is nearly unheard for similarly-sized applications like Firefox and GIMP. How can we avoid running Wireshark as root?&lt;/p&gt;
&lt;p&gt;UPDATE 2010-02-10: Made changes suggested by Jaap and Balint.&lt;/p&gt;
&lt;h3 id=&#34;a-good-way&#34;&gt;A good way &lt;a href=&#34;#a-good-way&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Notice how I said “capturing packets requires root” above? Here’s a secret — Wireshark doesn’t capture packets. A separate program called &lt;a href=&#34;http://www.wireshark.org/docs/man-pages/dumpcap.html&#34;&gt;dumpcap&lt;/a&gt; does. Compared to Wireshark, dumpcap is tiny. It’s much less complex and much safer to run as root. We can make it so that dumpcap runs as root and that only users in a particular group can run it:&lt;/p&gt;
&lt;pre&gt;$ sudo -s
# groupadd -g wireshark
# usermod -a -G wireshark gerald
# chgrp wireshark /usr/bin/dumpcap
# chmod 4750 /usr/bin/dumpcap
&lt;/pre&gt;
&lt;h3 id=&#34;a-better-way&#34;&gt;A better way &lt;a href=&#34;#a-better-way&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;It’s also possible to let dumpcap do its job without involving root access at all. For a very long time Linux has allowed the use of fine-grained permissions called &lt;a href=&#34;http://manpages.ubuntu.com/manpages/intrepid/man7/capabilities.7.html&#34;&gt;capabilities&lt;/a&gt;. In many recent distributions you can use the &lt;a href=&#34;http://manpages.ubuntu.com/manpages/intrepid/man8/setcap.8.html&#34;&gt;setcap&lt;/a&gt; utility to add capabilities to individual files.&lt;/p&gt;
&lt;p&gt;Dumpcap needs CAP_NET_RAW and CAP_NET_ADMIN, so what do we need to feed setcap? On my Ubuntu Karmic system the setcap man page points you to &lt;a href=&#34;http://manpages.ubuntu.com/manpages/intrepid/man3/cap_from_text.3.html&#34;&gt;cap_from_text&lt;/a&gt;. Cap_from_text points you to _cap_names, an array in the kernel. It would be nice if the setcap man page included a list of capability names along with a few examples. As it turns out, the names need to be in lower-case.&lt;/p&gt;
&lt;pre&gt;$ sudo -s
# sudo apt-get install libcap2-bin
# groupadd -g wireshark
# usermod -a -G wireshark gerald
# chmod 750 /usr/bin/dumpcap
# setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
&lt;/pre&gt;
&lt;p&gt;&lt;span style=&#34;color: #000000;&#34;&gt;You can also set these capabilities for Wireshark and TShark directly. Fully-functional filesystem capabilities &lt;/span&gt;is something the Linux world has needed for a very long time. I’m glad they’re finally seeing wide deployment.&lt;/p&gt;
&lt;h3 id=&#34;who8217s-doing-this&#34;&gt;Who’s Doing This? &lt;a href=&#34;#who8217s-doing-this&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Debian and Gentoo are using group-based permissions for Wireshark. Ubuntu is &lt;a href=&#34;http://brainstorm.ubuntu.com/idea/14140/&#34;&gt;working on it&lt;/a&gt;. Hopefully the other distributions will follow suit.&lt;/p&gt;
&lt;p&gt;&lt;span style=&#34;color: #808080;&#34;&gt;&lt;br /&gt; 1. This is a problem on other systems too, but it’s usually easier to solve. On Windows you can run the NPF service at startup. On OS X you can use ChmodBPF.&lt;br /&gt; &lt;/span&gt;&lt;/p&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments &lt;a href=&#34;#comments&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&#34;comment-by-jake-on-2010-02-08-054500-0000&#34;&gt;Comment by Jake on 2010-02-08 05:45:00 +0000 &lt;a href=&#34;#comment-by-jake-on-2010-02-08-054500-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Note that the recent Debian packages already implement this, something you’ll notice when installing them. Thanks Balint. For Ubuntu it’s still on Wishlist status.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-balint-on-2010-02-10-041139-0000&#34;&gt;Comment by Balint on 2010-02-10 04:11:39 +0000 &lt;a href=&#34;#comment-by-balint-on-2010-02-10-041139-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Gerald,&lt;br&gt;
Could you please suggest using the wireshark system group instead of packetcapture?&lt;br&gt;
Gentoo and Debian already use wireshark group, and it would be easier for newcomers to use the same group name everywhere.&lt;/p&gt;
&lt;p&gt;I plan to update the Debian packages to use setcap, thanks for the hint.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-gerald-combs-on-2010-02-10-105909-0000&#34;&gt;Comment by Gerald Combs on 2010-02-10 10:59:09 +0000 &lt;a href=&#34;#comment-by-gerald-combs-on-2010-02-10-105909-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;I changed the example group to “wireshark” and mentioned Gentoo, Debian, and Ubuntu.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-balint-on-2010-02-17-102851-0000&#34;&gt;Comment by Balint on 2010-02-17 10:28:51 +0000 &lt;a href=&#34;#comment-by-balint-on-2010-02-17-102851-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;It would also make sense to use groupadd -g -r wireshark instead of groupadd -g wireshark to make the new group a system group. That would match and nicely coexist with Debian’s and Ubuntu’s installation method.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Holiday Gift Opening Tip</title>
      <link>https://blog.wireshark.org/2009/12/holiday-gift-opening-tip/</link>
      <pubDate>Thu, 17 Dec 2009 04:47:42 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/12/holiday-gift-opening-tip/</guid>
      <description>&lt;p&gt;This is a &lt;a href=&#34;http://en.wikipedia.org/wiki/Wrap_rage&#34;&gt;blister pack&lt;/a&gt;:&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-full wp-image-324&#34; title=&#34;blister pack&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/12/blister-pack.png&#34; alt=&#34;blister pack&#34; width=&#34;500&#34; height=&#34;337&#34; /&gt; 
&lt;p&gt;We take gift-giving safety seriously here at the CACE Technologies World Domination Headquarters.&lt;/p&gt;
&lt;p&gt;These are aviation shears:&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-full wp-image-325&#34; title=&#34;aviation shears&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/12/aviation-shears.png&#34; alt=&#34;aviation shears&#34; width=&#34;500&#34; height=&#34;187&#34; /&gt; 
&lt;p&gt;This is what you can do to a blister pack in just a few seconds using aviation shears:&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-full wp-image-326&#34; title=&#34;opened&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/12/opened.png&#34; alt=&#34;opened&#34; width=&#34;500&#34; height=&#34;333&#34; /&gt; 
&lt;p&gt;The shears were designed to cut sheet metal. They go through annoying packaging with precision and ease. You know those scissors that can cut through a penny? Aviation shears can cut through a penny &lt;strong&gt;and&lt;/strong&gt; through those scissors.&lt;/p&gt;
&lt;p&gt;They’re the best thing I’ve found so far for the job.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Javascript Background Animation</title>
      <link>https://blog.wireshark.org/2009/11/js-bg-animation/</link>
      <pubDate>Fri, 13 Nov 2009 05:11:26 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/11/js-bg-animation/</guid>
      <description>&lt;p&gt;The Windows 7 taskbar does this nifty little background animation when you mouse over an open application’s icon. I wanted to see if the effect could be duplicated on a web page.&lt;/p&gt;
&lt;p&gt;Suppose we have a couple of inline elements:&lt;/p&gt;
&lt;p&gt;&lt;span style=&#34;color: #000080;&#34;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;div&amp;gt;
  &amp;lt;img class=&#34;bgmove&#34; src=&#34;wsbadge-empty.png&#34;&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style=&#34;color: #000080;&#34;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;h1&amp;gt;
  &amp;lt;span class=&#34;bgmove&#34;&amp;gt;Packets!&amp;lt;/span&amp;gt;
&amp;lt;/h1&amp;gt;&lt;/pre&gt;
&lt;p&gt;The image is mostly transparent:&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-full wp-image-280&#34; title=&#34;wsbadge-empty&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/11/wsbadge-empty.png&#34; alt=&#34;wsbadge-empty&#34; width=&#34;186&#34; height=&#34;64&#34; /&gt; 
&lt;p&gt;We have a background that’s slightly larger than our elements, which lets us position it using negative offsets:&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-full wp-image-281&#34; title=&#34;wsbadge-bg&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/11/wsbadge-bg.png&#34; alt=&#34;wsbadge-bg&#34; width=&#34;279&#34; height=&#34;95&#34; /&gt; 
&lt;p&gt;&lt;span style=&#34;color: #008000;&#34;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;.bgmove {
  background-image: url(&#39;wsbadge-bg.png&#39;);
  background-repeat: no-repeat;
  background-position: -50px -20px;
}&lt;/pre&gt;
&lt;p&gt;jQuery lets us do two important things: track mouse motion and determine an element’s dimensions. This lets us shift the backround around when we mouse over each element:&lt;/p&gt;
&lt;p&gt;&lt;span style=&#34;color: #808000;&#34;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;$(document).ready(function(){
  $(&#34;div img.bgmove&#34;).pngFix();
    $(&#34;.bgmove&#34;).mousemove(function(e){
    var elWidth = $(e.target).outerWidth();
    var elHeight = $(e.target).outerHeight();
    var bgWidth = 279;
    var bgHeight = 95;
    var x = e.pageX - this.offsetLeft;
    var y = e.pageY - this.offsetTop;
    //var offX = -1 * (x * (bgWidth - elWidth) / elWidth);  // Against the mouse
    var offX = (x * (bgWidth - elWidth) / elWidth) - (bgWidth - elWidth);  // With the mouse
    var offY = -1 * (y * (bgHeight - elHeight) / elHeight); // Against the mouse
    //var offY = (y * (bgHeight - elHeight) / elHeight) - (bgHeight - elHeight);  // With the mouse
    bgPos = offX + &#39;px &#39; + offY + &#39;px&#39;;
    this.style.backgroundPosition = bgPos;
    });
})&lt;/pre&gt;
&lt;p&gt;You can see it all in action &lt;a href=&#34;http://www.zing.org/bgmove.html&#34;&gt;on the demo page&lt;/a&gt;. Combining this with &lt;a href=&#34;http://snook.ca/archives/javascript/jquery-bg-image-animations/&#34;&gt;jQuery animation&lt;/a&gt; is left as an exercise for the reader. The effect works in Firefox, Safari, Chrome, and IE 7+. IE 6 has trouble with the transparent PNG.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Debugging SSL Servers Over IPv6</title>
      <link>https://blog.wireshark.org/2009/10/debugging-ssl-servers-over-ipv6/</link>
      <pubDate>Fri, 16 Oct 2009 21:00:50 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/10/debugging-ssl-servers-over-ipv6/</guid>
      <description>&lt;p&gt;An old-school method of debugging TCP-based services is to use telnet:&lt;/p&gt;
&lt;pre&gt;$ &lt;span style=&#34;color: #333333;&#34;&gt;telnet www.wireshark.org 80&lt;/span&gt;
Trying 67.228.110.120...
Connected to www.wireshark.org.
Escape character is &#39;^]&#39;.
&lt;span style=&#34;color: #008000;&#34;&gt;HEAD / HTTP/1.0
Host: www.wireshark.org&lt;/span&gt;

&lt;span style=&#34;color: #000080;&#34;&gt;HTTP/1.1 200 OK
Date: Fri, 16 Oct 2009 19:31:47 GMT
Server: Apache
Accept-Ranges: bytes
Cache-Control: max-age=3600
Vary: Accept-Encoding
X-Slogan: Be good. You never know who&#39;s running Wireshark nearby.
Content-Length: 9628
Connection: close
Content-Type: text/html&lt;/span&gt;

Connection closed by foreign host.&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;It’s like giving your web server a big ol’ hug.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Most telnet clients do something very clever here. If you connect to a port other than 23 (or whatever &lt;em&gt;getservbyname&lt;/em&gt; returns when you feed it “telnet”) they will disable telnet protocol negotiation and switch to line mode. This gives you a raw, line-based connection which is just the thing you need to interact with an HTTP, POP, IMAP, FTP, or NNTP server.&lt;/p&gt;
&lt;p&gt;Adding SSL and IPv6 to the mix complicates things. I’m in the process of making Wireshark’s public-facing services available over IPv6. It would be helpful to be able to test connectivity to each service before adding its corresponding AAAA record. Standard telnet clients support 6, but not SSL. OpenSSL’s &lt;em&gt;s_client&lt;/em&gt; command speaks SSL, but not over IPv6 (not on my systems, at least):&lt;/p&gt;
&lt;pre&gt;$ &lt;span style=&#34;color: #333333;&#34;&gt;openssl s_client -connect &#39;[2607:f0d0:2001:e:1::123]:443&#39;&lt;/span&gt;
&lt;span style=&#34;color: #800000;&#34;&gt;getservbyname failure for f0d0:2001:e:1::123]:443&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;$ &lt;span style=&#34;color: #333333;&#34;&gt;openssl s_client -connect ipv6.wireshark.org:443&lt;/span&gt;
&lt;span style=&#34;color: #800000;&#34;&gt;gethostbyname failure
connect:errno=110&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Luckily Fyodor released Nmap 5 a while back. Nmap 5 includes &lt;em&gt;ncat&lt;/em&gt;, which lets you connect over SSL+IPv6. It is now my new favorite service-poking utility.&lt;/p&gt;
&lt;pre&gt;$ &lt;span style=&#34;color: #333333;&#34;&gt;ncat -6 --ssl -v 2607:f0d0:2001:e:1::123 443&lt;/span&gt;
Ncat version 5.00 ( http://nmap.org/ncat )
SSL connection to 2607:f0d0:2001:e:1::123:443. bugs.wireshark.org
SHA-1 fingerprint: F6BA 2EE9 DEEF 74D3 B4B0 86D7 F5DB 6237 FF7F 896A
&lt;span style=&#34;color: #800000;&#34;&gt;&lt;span style=&#34;color: #008000;&#34;&gt;HEAD /bugzilla/ HTTP/1.0
Host: bugs.wireshark.org&lt;/span&gt;
&lt;/span&gt;
&lt;span style=&#34;color: #000080;&#34;&gt;HTTP/1.1 200 OK
Date: Fri, 16 Oct 2009 20:26:23 GMT
Server: Apache
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;On many Linux distributions you can also use &lt;em&gt;telnet-ssl&lt;/em&gt;:&lt;/p&gt;
&lt;pre&gt;telnet-ssl -z ssl 2607:f0d0:2001:e:1::123 443&lt;/pre&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments &lt;a href=&#34;#comments&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&#34;comment-by-martijn-pepping-on-2009-10-19-084032-0000&#34;&gt;Comment by Martijn Pepping on 2009-10-19 08:40:32 +0000 &lt;a href=&#34;#comment-by-martijn-pepping-on-2009-10-19-084032-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Instead of the telnet-ssl command the openssl command can be used, which is more likely to be available on a system.&lt;/p&gt;
&lt;p&gt;For example, the openssl command can be used as:&lt;br&gt;
$ openssl s_client -connect hostname:443&lt;/p&gt;
&lt;p&gt;In which ‘443’ represents the tcp-portnumber the SSL-service is listening on.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-gerald-combs-on-2009-10-19-084249-0000&#34;&gt;Comment by Gerald Combs on 2009-10-19 08:42:49 +0000 &lt;a href=&#34;#comment-by-gerald-combs-on-2009-10-19-084249-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Does ‘openssl s_client -connect’ support IPv6 on your system? It doesn’t on any of mine. See the red error text in the post.&lt;/p&gt;
&lt;h3 id=&#34;comment-by-ssl-star-on-2009-11-04-082342-0000&#34;&gt;Comment by SSL Star on 2009-11-04 08:23:42 +0000 &lt;a href=&#34;#comment-by-ssl-star-on-2009-11-04-082342-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Great advice. I dont know how many times I have to tell people the very same things. Glad I’m not the only one.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Capture Filters and Offsets</title>
      <link>https://blog.wireshark.org/2009/10/capture-filters-and-offsets/</link>
      <pubDate>Mon, 05 Oct 2009 13:03:53 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/10/capture-filters-and-offsets/</guid>
      <description>&lt;p&gt;A couple of questions have come up on the &lt;a href=&#34;http://www.wireshark.org/lists/&#34;&gt;wireshark-users&lt;/a&gt; mailing list recently about using capture filters for MPLS and VLANs. Each user was having the same problem yet these are different network technologies — what do they have to do with each other?&lt;/p&gt;
&lt;p&gt;The answer is &lt;em&gt;offsets&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Let’s take an up-close and personal look at the capture filter “ip src host 10.16.32.48”. We can do this by running &lt;em&gt;tcpdump -d&lt;/em&gt;, which takes a filter, compiles it, and dumps out the result. The dump of our filter looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&#34;color: #008000;&#34;&gt;(000) ldh      [12]
(001) jeq      #0x800           jt 2    jf 5&lt;/span&gt;
&lt;span style=&#34;color: #0000ff;&#34;&gt;(002) ld       [26]&lt;/span&gt;
&lt;span style=&#34;color: #0000ff;&#34;&gt;(003) jeq      #0xa102030       jt 4    jf 5&lt;/span&gt;
(004) ret      #96
(005) ret      #0&lt;/pre&gt;
&lt;p&gt;If this makes no sense don’t worry. You just need to know that the &lt;span style=&#34;color: #008000;&#34;&gt;first two lines look for the IP ethertype (0x800) starting at byte 12&lt;/span&gt; and the &lt;span style=&#34;color: #0000ff;&#34;&gt;next two lines look for the IP address 10.16.32.48 (0xa102030) starting at byte 26&lt;/span&gt;. This is the minimum amount of checking required for that capture filter if you’re running IP over Ethernet.&lt;/p&gt;
&lt;p&gt;What happens if you’re using 802.1q?&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://en.wikipedia.org/wiki/802.1q&#34;&gt;802.1q inserts an extra four bytes in front of the ethertype&lt;/a&gt;, so this filter won’t do what you want. The ethertype will be at offset 16 instead of 12, and the IP source address will be at offset 30 instead of 26. Libpcap and WinPcap don’t know you’re using .1q, and adding a check to the filter code would add a lot of unnecessary overhead. We have to add the word “vlan” to our filter to get the right offsets, e.g. “vlan and ip src host 10.16.32.48”:&lt;/p&gt;
&lt;pre&gt;(000) ldh      [12]
(001) jeq      #0x8100          jt 2    jf 7
(002) ldh      [16]
(003) jeq      #0x800           jt 4    jf 7
&lt;span style=&#34;color: #0000ff;&#34;&gt;(004) ld       [30]&lt;/span&gt;
&lt;span style=&#34;color: #0000ff;&#34;&gt;(005) jeq      #0xa102030       jt 6    jf 7&lt;/span&gt;
(006) ret      #96
(007) ret      #0&lt;/pre&gt;
&lt;p&gt;There’s a gotcha here, though. What if we change the “and” to an “or”?&lt;/p&gt;
&lt;pre&gt;(000) ldh      [12]
(001) jeq      #0x8100          jt 6    jf 2
(002) ldh      [16]
(003) jeq      #0x800           jt 4    jf 7
&lt;span style=&#34;color: #0000ff;&#34;&gt;(004) ld       [30]&lt;/span&gt;
&lt;span style=&#34;color: #0000ff;&#34;&gt;(005) jeq      #0xa102030       jt 6    jf 7&lt;/span&gt;
(006) ret      #96
(007) ret      #0&lt;/pre&gt;
&lt;p&gt;We’re looking for the IP address at byte 30. Shouldn’t we be looking at both 26 and 30?&lt;/p&gt;
&lt;p&gt;The filter compiler uses a base offset for fetching data from the packet. Any time you use “vlan”, “mpls”, or “pppoes” in a capture filter, this offset is increased &lt;strong&gt;from that point on&lt;/strong&gt;. It’s also &lt;strong&gt;cumulative&lt;/strong&gt;. That is, while all of these filters are logically equivalent, they’re not in practice:&lt;/p&gt;
&lt;p style=&#34;padding-left: 30px;&#34;&gt;
  ip src host 10.16.32.48 or vlan or vlan &lt;span style=&#34;color: #808080;&#34;&gt;&lt;em&gt;(Looks for 10.16.32.48 at offset 26)&lt;/em&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&#34;padding-left: 30px;&#34;&gt;
  vlan or ip src host 10.16.32.48 or vlan &lt;span style=&#34;color: #808080;&#34;&gt;&lt;em&gt;(Now it&amp;#8217;s looking at offset 30)&lt;/em&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&#34;padding-left: 30px;&#34;&gt;
  vlan or vlan or ip src host 10.16.32.48 &lt;span style=&#34;color: #808080;&#34;&gt;&lt;em&gt;(Offset 34. When will it ever end?)&lt;/em&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;“vlan” and “mpls” increase the base offset by 4. “pppoes” increases it by 8.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Wireshark’s Welcome Screen</title>
      <link>https://blog.wireshark.org/2009/09/wiresharks-welcome-screen/</link>
      <pubDate>Fri, 25 Sep 2009 16:04:28 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/09/wiresharks-welcome-screen/</guid>
      <description>&lt;p&gt;Wireshark 1.2 added a nifty welcome screen which lets you start capturing, load a capture file, get help, and lots of other things. At the very top of the screen we brag about our popularity.&lt;/p&gt;
&lt;p&gt;You can change that message to anything you like.&lt;/p&gt;
&lt;h3 id=&#34;heading&#34;&gt; &lt;a href=&#34;#heading&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;If you’re running Windows&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;em&gt;About→Wireshark→Folders&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Double-click on &lt;em&gt;Personal Configuration&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Open &lt;em&gt;preferences&lt;/em&gt; with a text editor, such as Notepad. &lt;strong&gt;Not&lt;/strong&gt; a word processor, such as Word. This is a plain text file. Notepad good. Word bad. Very, very bad.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;if-you8217re-running-os-x-linux-or-similar&#34;&gt;If you’re running OS X, Linux, or similar &lt;a href=&#34;#if-you8217re-running-os-x-linux-or-similar&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Open &lt;em&gt;~/.wireshark/preferences&lt;/em&gt; in a text editor.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;now-that-you8217re-deep-in-the-bowels-of-your-preferences-file&#34;&gt;Now that you’re deep in the bowels of your preferences file &lt;a href=&#34;#now-that-you8217re-deep-in-the-bowels-of-your-preferences-file&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;Find the following block of text:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;&lt;span style=&#34;color: #808080;&#34;&gt;# Custom start page title.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;&lt;span style=&#34;color: #0000ff;&#34;&gt;gui.start_title:&lt;/span&gt; The World&#39;s Most Popular Network Protocol Analyzer&lt;/pre&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;&lt;span style=&#34;color: #808080;&#34;&gt;# Show version in start page, can be useful in custom builds.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;&lt;span style=&#34;color: #888888;&#34;&gt;# TRUE or FALSE (case-insensitive).&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;&lt;span style=&#34;color: #0000ff;&#34;&gt;gui.version_in_start_page:&lt;/span&gt; FALSE&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Change &lt;span style=&#34;color: #0000ff;&#34;&gt;&lt;em&gt;gui.start_title&lt;/em&gt;&lt;/span&gt; to your custom message.&lt;/li&gt;
&lt;li&gt;If you’d like the version to show up, change &lt;em&gt;&lt;span style=&#34;color: #0000ff;&#34;&gt;gui.version_in_start_page&lt;/span&gt;&lt;/em&gt; to TRUE.&lt;/li&gt;
&lt;li&gt;Save the file and exit your editor.&lt;/li&gt;
&lt;li&gt;Restart or start Wireshark.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Et voilà:&lt;/p&gt;
&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-full wp-image-134&#34; title=&#34;New title&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/09/New-title.png&#34; alt=&#34;New title&#34; width=&#34;447&#34; height=&#34;107&#34; /&gt;</description>
    </item>
    
    <item>
      <title>Filtering DSCP</title>
      <link>https://blog.wireshark.org/2009/09/filtering-dscp/</link>
      <pubDate>Mon, 21 Sep 2009 22:34:34 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/09/filtering-dscp/</guid>
      <description>&lt;p&gt;The second byte in the IPv4 header (aka “those bits you’ve probably never, ever looked at”) is used for Differentiated Services, or DiffServ. It’s split into two parts: the 6 most significant bits define the &lt;a href=&#34;http://tools.ietf.org/html/rfc2474&#34;&gt;DSCP (differentiated services code point)&lt;/a&gt; and the two least significant bits are for &lt;a href=&#34;http://tools.ietf.org/html/rfc3168&#34;&gt;ECN (explicit congestion notification)&lt;/a&gt;. You can use DSCP to divide your traffic into different classes. For example, Asterisk might use the following DiffServ value, which corresponds &lt;a href=&#34;http://tools.ietf.org/html/rfc2598&#34;&gt;EF (Expedited Forwarding)&lt;/a&gt;:&lt;/p&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;&lt;span style=&#34;color: #008000;&#34;&gt;DSCP&lt;/span&gt;  &lt;span style=&#34;color: #0000ff;&#34;&gt;ECN
&lt;/span&gt;&lt;span style=&#34;color: #008000;&#34;&gt;101110&lt;/span&gt;&lt;span style=&#34;color: #0000ff;&#34;&gt;00&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If your networking equipment is sufficiently aware, this traffic will receive preferential treatment.&lt;/p&gt;
&lt;p&gt;You can filter these values pretty easily using the &lt;a href=&#34;http://www.wireshark.org/docs/dfref/i/ip.html&#34;&gt;ip.dsfield.dscp&lt;/a&gt; display filter — just right-click on the DSCP field in the packet like so:&lt;/p&gt;
&lt;div id=&#34;attachment_109&#34; style=&#34;width: 493px&#34; class=&#34;wp-caption alignnone&#34;&gt;
  &lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; aria-describedby=&#34;caption-attachment-109&#34; class=&#34;size-full wp-image-109&#34; title=&#34;dscp-filter&#34; alt=&#34;Applying a DSCP display filter&#34; src=&#34;https://blog.wireshark.org/wp-content/uploads/2009/09/dscp-filter1.png&#34; width=&#34;483&#34; height=&#34;158&#34; /&gt;
  &lt;p id=&#34;caption-attachment-109&#34; class=&#34;wp-caption-text&#34;&gt;
    Applying a DSCP display filter
  &lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;What if you need to use DSCP in a capture filter?&lt;/p&gt;
&lt;p&gt;To match against a particular DSCP codepoint using BPF (WinPcap/libpcap’s filtering language) you need to take the bit pattern, left-shift it two places to account for the ECN, and mask out the ECN. For EF (101110) you’d have do something like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Take 101110 and shift it left two bits: 10111000&lt;/li&gt;
&lt;li&gt;Convert it to hex: 0xb8&lt;/li&gt;
&lt;li&gt;Create a filter, masking out the ECN bits:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre style=&#34;padding-left: 30px;&#34;&gt;ip[1] &amp; 0xfc == 0xb8&lt;/pre&gt;
&lt;p&gt;Cisco has a list of code points at &lt;a href=&#34;http://www.cisco.com/en/US/tech/tk543/tk757/technologies_tech_note09186a00800949f2.shtml&#34;&gt;http://www.cisco.com/en/US/tech/tk543/tk757/technologies_tech_note09186a00800949f2.shtml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;P.S. To make matters more confusing, the DiffServ field was originally called “Type of Service.”&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Missing Packets and Chimnies</title>
      <link>https://blog.wireshark.org/2009/09/missing-packets-and-chimnies/</link>
      <pubDate>Thu, 17 Sep 2009 00:33:43 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/09/missing-packets-and-chimnies/</guid>
      <description>&lt;p&gt;You’ve just fired up Wireshark on your Windows Server 2003 or 2008 system and you’re not seeing nearly the amount of traffic you should. What’s happening?&lt;/p&gt;
&lt;p&gt;The Windows Server 2003 Scalable Networking Pack introduced a feature called &lt;a href=&#34;http://wiki.wireshark.org/CaptureSetup/Offloading&#34;&gt;TCP Chimney Offload&lt;/a&gt;. Chimney offloading lets the OS networking stack hand off established TCP connections to the NIC for processing. This frees up the CPU, bus, and memory for other things and lets you scale up the number of connections you can handle. Hooray! Once the OS hands a connection off to the NIC, that traffic completely bypasses WinPcap and therefore doesn’t show up in Wireshark. You see the TCP connection setup and non-TCP traffic but no TCP data. Oops.&lt;/p&gt;
&lt;p&gt;How do you fix the problem? It depends on your environment.&lt;/p&gt;
&lt;p&gt;You can disable chimney offloading as described in &lt;a href=&#34;http://support.microsoft.com/kb/912222&#34;&gt;KB 91222&lt;/a&gt; (Server 2003) or &lt;a href=&#34;http://support.microsoft.com/kb/951037&#34;&gt;KB 951037&lt;/a&gt; (Server 2008). If you have a gigabit NIC you can probably get away with leaving it disabled. If you have a 10 gig NIC this might affect your performance. You can also SPAN or tap in and capture on an external machine, assuming you’re sufficiently equipped.&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Tip from Laura: SMB2 Vulnerability Wireshark Filter</title>
      <link>https://blog.wireshark.org/2009/09/tip-from-laura-smb2-vulnerability-wireshark-filter/</link>
      <pubDate>Tue, 08 Sep 2009 20:38:19 +0000</pubDate>
      
      <guid>https://blog.wireshark.org/2009/09/tip-from-laura-smb2-vulnerability-wireshark-filter/</guid>
      <description>&lt;p&gt;The big tech news this morning was a recently-discovered &lt;a href=&#34;http://seclists.org/fulldisclosure/2009/Sep/0039.html&#34;&gt;SMB2 vulnerability&lt;/a&gt; in Windows Vista, 2008, and 7. Laura Chappell created a Wireshark display filter for identifying offending traffic:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;((smb.cmd == 0x72) &amp;amp;&amp;amp; (smb.flags.response == 0)) &amp;amp;&amp;amp; !(smb.pid.high == 0)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;See the &lt;a href=&#34;http://www.chappellseminars.com/projects.html&#34;&gt;full report on her site&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments &lt;a href=&#34;#comments&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&#34;comment-by-jay-on-2009-10-07-141926-0000&#34;&gt;Comment by Jay on 2009-10-07 14:19:26 +0000 &lt;a href=&#34;#comment-by-jay-on-2009-10-07-141926-0000&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;Hi,&lt;br&gt;
I am doing some Software Performance Test(thru network environment) and Im using Wireshark to analyze it.&lt;br&gt;
My Capture filter is ether host xx:xx:xx and Display filter is smb2.&lt;br&gt;
What is the filter syntax should I use to remove the packet using GUID handle file:xxx under smb2 protocol.&lt;br&gt;
Please help.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
