<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; tcp/ip</title> <atom:link href="http://www.ghacks.net/tag/tcpip/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 13:29:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How To Calculate a TCP-IP Subnet Mask</title><link>http://www.ghacks.net/2011/09/03/how-to-calculate-a-tcp-ip-subnet-mask/</link> <comments>http://www.ghacks.net/2011/09/03/how-to-calculate-a-tcp-ip-subnet-mask/#comments</comments> <pubDate>Sat, 03 Sep 2011 07:42:58 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[Networks]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[ip]]></category> <category><![CDATA[network address]]></category> <category><![CDATA[network administration]]></category> <category><![CDATA[subnet]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[tcp/ip]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=50039</guid> <description><![CDATA[If you’re a network administrator, chances are at some point you may need to set up a number of different networks on your IP range. In order to do this, you will need to know how to create different subnets. There are two main things to remember when trying to calculate subnets. The first is [...]]]></description> <content:encoded><![CDATA[<p>If you’re a network administrator, chances are at some point you may need to set up a number of different networks on your IP range. In order to do this, you will need to know how to create different subnets.</p><p>There are two main things to remember when trying to calculate subnets. The first is that that default subnet for a range is 255.255.255.0. This subnet, that we all recognize gives you one network with 255 different addresses from 1 to 255. Fairly easy stuff so far. The second thing to remember is the formula needed to calculate a new subnet. For this we have to go back to basics and remember that the number 255 is made up in binary of 8 bits. To get the number 255, all those 8 bits would be set to 1, each one representing a number in decimal in the following sequence. (1, 2, 4, 8, 16, 32, 64, 128). If you add all these numbers together you get 255.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/09/tcp-ip-subnet.gif" alt="tcp-ip-subnet" title="tcp-ip-subnet" width="403" height="162" class="alignnone size-full wp-image-50040" /></p><p>In order to create our subnet mask we need to “borrow” a certain number of bits from our host address. The host address is the last number in the group of four that makes up our subnet. So in the subnet 255.255.255.0, the 0 is the host address.</p><p>We can use the formula (2^n – 2) to figure out how many networks we can make by borrowing certain number of bits. Lets say for example we wanted to make six networks; we would need to borrow 3 bits, because (2^3 – 2 = 6). So we take the three bits from the left of our binary sequence and add them together. (128 + 64 + 32 = 224). So the subnet we need to use for our 6-network system is 255.255.255.224.</p><p>Now we’ve calculated our subnet, the next thing we need to do is work out the ranges of our new networks. This is a fairly easy thing to do if you remember one rule. The lowest number in the bits we borrowed from our host address is our guide. In this case, the bits we borrowed were 128, 64 and 32. The lowest of these is 32, so this is our guide number we’re going to use to set up our network ranges.</p><p>What you want to do is start off with your guide number, and that gives you the first address of our first network. For example &#8211; 192.168.0.32. To get the starting address of the second network, you just add on 32. So the second network will begin at 192.168.0.64. Keep adding the number 32 to find the other network starting points, and you’ll end up with this network address range map:</p><ul><li>Network 1: 192.168.0.32 – 192.168.0.63</li><li>Network 2: 192.168.0.64 – 192.168.0.95</li><li> Network 3: 192.168.0.96 – 192.168.0.127</li><li>Network 4: 192.168.0.128 – 192.168.0.159</li><li>Network 5: 192.168.0.160 – 192.168.0.191</li><li>Network 6: 192.168.0.192 – 192.168.0.223</li></ul><p>Note that you cannot use the first 32 or last 32 addresses of the entire 255 address range, (unless you’re using specific equipment that allows it). And there you have it, we’ve calculated our subnet mask, and we’ve worked out the ranges our networks will use. Remember the formula (2^n – 2) and your binary numbers, and you’ll be able to work out any configuration of subnets and networks.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/09/03/how-to-calculate-a-tcp-ip-subnet-mask/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Monitor your Network the Open Source way with Etherape</title><link>http://www.ghacks.net/2009/01/23/monitor-your-network-the-open-source-way-with-etherape/</link> <comments>http://www.ghacks.net/2009/01/23/monitor-your-network-the-open-source-way-with-etherape/#comments</comments> <pubDate>Fri, 23 Jan 2009 19:49:03 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[etherape]]></category> <category><![CDATA[etherman]]></category> <category><![CDATA[internal traffic]]></category> <category><![CDATA[network analyzers]]></category> <category><![CDATA[Network Monitoring]]></category> <category><![CDATA[network tools]]></category> <category><![CDATA[tcp/ip]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10086</guid> <description><![CDATA[Every network administrator needs a good network monitor for network management. But with so many to choose from it&#8217;s hard to know which one is best. This especially applies to the open source world. Go to Freshmeat.net and you will find 191 entries for open source network analyzers and network tools. Of those many are [...]]]></description> <content:encoded><![CDATA[<p>Every network administrator needs a good network monitor for network management. But with so many to choose from it&#8217;s hard to know which one is best. This especially applies to the open source world. Go to Freshmeat.net and you will find 191 entries for open source network analyzers and network tools. Of those many are console based. Of those entries one monitor stands out as both powerful and easy to use. That tool? <a
title="Etherape Main Page" href="http://etherape.sourceforge.net/" target="_blank">Etherape</a>.</p><p>Etherape is a graphical network monitoring tool based on etherman that features link-layer, tcp, and ip modes. Etherape is a real time monitor who&#8217;s graphic representation instantly changes as network traffic goes in and out. You can use Etherape live or have it read from a dump file. Etherape supports Ethernet, FDDI, Token Ring, ISDN, PPP and SLIP devices so you shouldn&#8217;t have any problem getting it to work on your network.</p><p><span
id="more-10086"></span><strong>Installing</strong></p><p>Installing Etherape is simple. Open up your Add/Remove Software utility, do a search for &#8220;etherape&#8221; and select the entry when it appears. Apply the changes to install the application. If you prefer to go the command line route you can isse the command &#8220;sudo apt-get install etherape&#8221;. Once you have the application installed you can start Etherape by issuing the command <em>etherape</em> from a command line. You can also start Etherape from the Applications menu by looking in the Tools | System Tools submenus.</p><p><strong>The Main Window</strong></p><p>When you first open up Etherape (you will need the root password) you will see a blank window with some buttons and menus. At this point you are not capturing any packets because you haven&#8217;t instructed Etherape what interfaces to use.</p><div
id="attachment_10088" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/01/etherape_interfaces.png"><img
class="size-medium wp-image-10088" src="http://www.ghacks.net/wp-content/uploads/2009/01/etherape_interfaces-500x382.png" alt="Configure Etherape Interfaces" width="300" height="229" /></a><p
class="wp-caption-text">Configure Etherape Interfaces</p></div><p>In order to configure the interface click on the Capture menu and then click in the Interfaces sub-menu. Select the interface your machine uses to continue. Note that, as of this writing, Etherape does not support the Wifi0 interface. If you are using wireless you will most likely be able to use ath0.</p><p>Once you have configured the interface select the Mode type from the same menu you found the Interfaces entry.</p><p>Etherape will immediately begin capturing packets. You will see the large black window quickly fill with traffic. Depending upon your network your window can fill up very quickly. You will also notice that Etherape contains a color-coded legend.</p><div
id="attachment_10090" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/01/etherape_main1.png"><img
class="size-medium wp-image-10090" src="http://www.ghacks.net/wp-content/uploads/2009/01/etherape_main1-500x402.png" alt="Etherape Capturing Packets" width="300" height="241" /></a><p
class="wp-caption-text">Etherape Capturing Packets</p></div><p>By default CUPS and Domain are blue, WWW, TCP, ICMP are red, IMAP2 is purple, and POP3 is yellow. These colors can be changed in the Preferences window to whatever you like.</p><p>As you can see (in the image to the right) there is a lot of external traffic. But what if you only want to monitor internal traffic? Simple In the Preferences window click on the Diagram tab. You will see a small text area labeled &#8220;Capture Filter&#8221;. In this text area you will enter something similar to:<em> ip and src net 192.168 and dst net 192.168</em> (where 192.168 is the first two sections of your internal network addressing.)</p><p>Once you enter that information, click Save, and the preferences window will go away. Etherape will now start capturing only your internal traffic.</p><p><strong>Reading From Files</strong></p><p>Etherape can read files from the <em>tcpdump</em> application. But you must run <em>tcpdump</em> with the <em>-n </em>and <em>-w</em> flags. The <em>tcpdump </em>command would be run like so: <em>tcpdump -n -w dump_file</em>. Once you are satisfied you have enough information you can stop the dump with ctrl-c. Once you have your dump file you can open it by going to File and then selected Open. The captured packets will display in real time as they were captured during tcpdump&#8217;s run.</p><p><strong>Final Thoughts</strong></p><p>Etherape is the perfect tool for monitoring network traffic. Not only is it simple to use, it gives you instant output as traffic comes in and out of your network.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/01/23/monitor-your-network-the-open-source-way-with-etherape/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Measure exact throughput of any TCP IP network</title><link>http://www.ghacks.net/2008/07/09/measure-exact-throughput-of-any-tcp-ip-network/</link> <comments>http://www.ghacks.net/2008/07/09/measure-exact-throughput-of-any-tcp-ip-network/#comments</comments> <pubDate>Wed, 09 Jul 2008 08:00:48 +0000</pubDate> <dc:creator>Tobey</dc:creator> <category><![CDATA[Online Services]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[ip]]></category> <category><![CDATA[iperf]]></category> <category><![CDATA[netcps]]></category> <category><![CDATA[network]]></category> <category><![CDATA[tcp]]></category> <category><![CDATA[tcp/ip]]></category> <category><![CDATA[traffic]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=5196</guid> <description><![CDATA[Wondering how much traffic can be pulled through the network you&#8217;re working in during certain period of time or how quickly your network components work? Yeah, be a networking proffesional or a regular home user with a small LAN (like me :) ), it&#8217;s always good to know what&#8217;s your network capable of. But how [...]]]></description> <content:encoded><![CDATA[<p>Wondering how much traffic can be pulled through the network you&#8217;re working in during certain period of time or how quickly your network components work? Yeah, be a networking proffesional or a regular home user with a small LAN (like me :) ), it&#8217;s always good to know what&#8217;s your network capable of. But how do we find out? Well, some smart IT guys thought a utility capable of precisely measuring the amount of data flow within a period of time could come in handy and were so kind to share these tiny yet sophisticated utilities. Though, you do need to be able to access both endpoints between which you want to measure since the applications must be running on both sides in a server-client setting. Let the measuring begin!</p><p><span
id="more-5196"></span>NetCPS &#8211; the easier way</p><p>This little tool called <a
href="http://www.netchain.com/netcps/">NetCPS</a> (a single executable file) is rather simplistic, no fancy features as the author (credits to Jarle Aase) says. It pumps 100MB of generated data (without accessing the HDD which could mess with the final result) and then displays the result in form of average speed stated in both KB/s and MB/s. Sourcecode is available for download as well in case you&#8217;d like to do some further tinkering with it. Freely usable unless you intend to use it on behalf of military or government.</p><p><a
href="http://www.scrnshots.com/users/Cyberfly/screenshots/16410"><img
src="http://s3.amazonaws.com/scrnshots.com/screenshots/16410/ScreenShot00007.png" /></a></p><p>Example of use:</p><p>Server-side end-point: netcps -server<br
/> Client-side end-point2: netcps *IP address/hostname of the host*</p><p>Additional switches to change the default port (4455) and default amount of transfered data (100MB) are supported. Use the -help switch for further instructions.</p><p>Iperf &#8211; the powerful way</p><p>This tool on the contrary is rather advanced while still maintaining its portability and small size. It can measure performance with many different settings but those are optional and not neccessary for the essential purpose of finding out what the network&#8217;s throughput is. You can affect a lot of settings by changing them with various switches. Take notice of the example screenshot for instance, where the port used is changed to 1234, amount of sent data set to 200 MB, interval of reports set to 2 seconds for better accuracy and report format set to MBytes. Iperf can be run as a solid Windows service as well. Here&#8217;s a download link to the compiled Windows version of <a
href="https://publishing.ucf.edu/sites/itr/cst/Pages/home.aspx">Iperf</a> (a single executable).</p><p><a
href="http://www.scrnshots.com/users/Cyberfly/screenshots/16830"><img
src="http://s3.amazonaws.com/scrnshots.com/screenshots/16830/ScreenShot00008.png" /></a></p><p>Example of use:</p><p>Server-side end-point: iperf -s -p 1234<br
/> Client-side end-point2: iperf -c *IP address/hostname of the host*</p><p>Many additional switches and settings are available for advanced use of this nifty utility. The usual -help switch brings up further instructions again.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/07/09/measure-exact-throughput-of-any-tcp-ip-network/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Automatically Adjust the Process Priority</title><link>http://www.ghacks.net/2008/03/01/automatically-adjust-the-process-priority/</link> <comments>http://www.ghacks.net/2008/03/01/automatically-adjust-the-process-priority/#comments</comments> <pubDate>Sat, 01 Mar 2008 09:52:48 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[processes]]></category> <category><![CDATA[services]]></category> <category><![CDATA[task-manager]]></category> <category><![CDATA[tcp/ip]]></category> <category><![CDATA[windows tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2008/03/01/automatically-adjust-the-process-priority/</guid> <description><![CDATA[There is no automatic way to adjust the priority of a process in Windows using the default tools supplied by Microsoft. It is possible to adjust the current process priority but this setting is only valid for the current setting. Once the process gets killed, for example by closing the application or rebooting, it reverts the priority back to the default one.]]></description> <content:encoded><![CDATA[<p>There is no automatic way to adjust the priority of a process in Windows using the default tools supplied by Microsoft. It is possible to adjust the current process priority but this setting is only valid for the current setting. Once the process gets killed, for example by closing the application or rebooting, it reverts the priority back to the default one.</p><p>But what if you want to do it automatically ? Say you happen to transcode videos every now and then and want that process to be below normal to continue working with your computer during the process. Or you would like to assign a higher process priority to a game that you like to play and that needs all the cpu cycles that it can get.</p><p>I can tell from personal experience that there are many applications where an automatic adjustment of the process priority would come in handy.</p><p><span
id="more-3384"></span><img
src="http://www.ghacks.net/wp-content/uploads/2008/03/process_priority.jpg" alt="process priority" /></p><p>One tool that does the job is Prio, the <a
href="http://www.prnwatch.com/prio.html" title="priority saver" target="_blank">Priority Saver</a>. It adds this functionality to the Windows Task Manager. The most important feature that it introduces is the ability to save priorities for processes. To do that you simply select another process priority and check the Save Priority entry in the same menu as well.</p><p>Every time the process is started it will run with the selected priority from now on. The different colors are also added by Priority Saver. Green colors are assigned to processes with a digital signature while red colored ones do not have one. Hovering the mouse over  a process will display a tooltip with additional information about it.</p><p>Priority Saver adds two new tabs to the Windows Task Manager as well which are called Services and TCP / IP.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2008/03/windows_services.jpg" alt="windows services" /></p><p>The services tab displays all services currently installed on the system. This menu makes it possible to start and stop services and change their startup mode which makes the services.msc application redundant.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2008/03/tcp_ip_task_manager.jpg" alt="tcp ip task manager" /></p><p>The TCP/IP tab displays all incoming and outgoing network connections of the computer. Tooltips aid in determining the process that is responsible for the connection.</p><p>Process Priority is free for personal use and runs fine in Windows XP. There is no information available about other supported operating systems.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/03/01/automatically-adjust-the-process-priority/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>EventID 4226: TCP/IP has reached the security limit</title><link>http://www.ghacks.net/2007/10/24/eventid-4226-tcpip-has-reached-the-security-limit/</link> <comments>http://www.ghacks.net/2007/10/24/eventid-4226-tcpip-has-reached-the-security-limit/#comments</comments> <pubDate>Wed, 24 Oct 2007 08:14:42 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[P2p]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[connection limit]]></category> <category><![CDATA[file-sharing]]></category> <category><![CDATA[half-open]]></category> <category><![CDATA[tcp/ip]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/10/24/eventid-4226-tcpip-has-reached-the-security-limit/</guid> <description><![CDATA[Windows XP with Service Pack 2 and Windows Vista have both a TCP/IP connection limit that limits the half-open connections of the system. If that limit is reached a new entry in the Event Viewer is created stating "EventID 4226: TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts.".]]></description> <content:encoded><![CDATA[<p>Windows XP with Service Pack 2 and Windows Vista have both a TCP/IP connection limit that limits the half-open connections of the system. If that limit is reached a new entry in the Event Viewer is created stating &#8220;EventID 4226: TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts.&#8221;.</p><p>It is not absolutely clear to me why Microsoft did set the limitation, some possible reasons could be to prevent worms and other malicious scripts from spreading to fast or to limit filesharing. Users will most likely notice that something is wrong when running P2P clients, slow downloads and timeouts are indicators that the limit is set.</p><p>Thankfully a solution exists that can patch the file tcpip.sys and remove the security limit. To do that you need to download the file Vista TCP Patch, open an elevated command prompt with administrator rights and enter the following command. <code>VistaTcpPatch /n X</code> with X being the maximum amount of half-open connections allowed on that system.</p><p><span
id="more-2167"></span>The computer needs to be restarted afterwards. Some users reported that they needed to execute Vista TCP Patch from the \Windows\System32\ folder to make it work.</p><p>Windows XP users can download and run the software EventID 4226 Patcher Version 2.23d instead which basically does the same thing but sets the limit to 50 half-open connections.</p><p>Vista TCP Patch (for Windows Vista)<br
/> <a
href="http://www.lvllord.de/?lang=en&#038;url=downloads">EventID 4226 Patcher Version 2.23d</a> (for Windows XP)</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/10/24/eventid-4226-tcpip-has-reached-the-security-limit/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> </channel> </rss>
