<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>EMSTONE Bebop &#187; Network</title>
	<atom:link href="http://bebop.emstone.com/tags/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://bebop.emstone.com</link>
	<description>엠스톤 개발팀 블로그</description>
	<lastBuildDate>Sun, 29 Jan 2012 05:25:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
		<item>
		<title>Arch Linux에 WireShark 설치</title>
		<link>http://bebop.emstone.com/2011/10/13/install-wireshark-on-arch-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-wireshark-on-arch-linux</link>
		<comments>http://bebop.emstone.com/2011/10/13/install-wireshark-on-arch-linux/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 06:44:57 +0000</pubDate>
		<dc:creator>moonpfe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Wireshark]]></category>

		<guid isPermaLink="false">http://bebop.emstone.com/?p=1647</guid>
		<description><![CDATA[archlinux에는 다음과 같이 두가지 wireshark gui 버전을 제공합니다. wireshark-gtk wireshark-cli wireshark 패키지 설치는 pacman 을 이용하면 됩니다. wireshark-gtk 는 wireshark-cli 패키지에 의존함으로 두 패키지를 모두 설치하려면 다음 명령을 실행합니다. pacman -S wireshark-gtk wireshark-cli 패키지만 설치하려면 다음 명령을 실행합니다. pacman -S &#8230; <a href="http://bebop.emstone.com/2011/10/13/install-wireshark-on-arch-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>archlinux에는 다음과 같이 두가지 wireshark gui 버전을 제공합니다.</p>
<ul>
<li>wireshark-gtk</li>
<li>wireshark-cli</li>
</ul>
<p>wireshark 패키지 설치는 pacman 을 이용하면 됩니다. wireshark-gtk 는 wireshark-cli 패키지에 의존함으로 두 패키지를 모두 설치하려면 다음 명령을 실행합니다.</p>
<pre>pacman -S wireshark-gtk</pre>
<p>wireshark-cli 패키지만 설치하려면 다음 명령을 실행합니다.</p>
<pre>pacman -S wireshark-cli</pre>
<p>wireshark 를 구동하기 위해서는 적합한 캡쳐 권한 (Capture Privilege)이 있어야 합니다. 물론 root 권한으로 실행하면 캡쳐 권한이 있으니 구동하는데 문제는 없겠지만, 이는 심각한 보안 문제가 발생시킬 수 있습니다. 따라서, wireshark 가 구동하는데 필요한 최소한의 권한만 부여하여 실행하는 것이 바람직합니다. archlinux 에서는 다음과 과정을 통해 해당 작업을 수행할 수 있습니다.  username 에는 wireshark를 구동할 사용자 아이디를 넣으면 됩니다.</p>
<ol>
<li>groupadd wireshark</li>
<li>chgrp wireshark /usr/bin/dumpcap</li>
<li>chmod 754 /usr/bin/dumpcap</li>
<li>setcap &#8216;CAP_NET_RAW+eip CAP_NET_ADMIN+eip&#8217; /usr/bin/dumpcap</li>
<li>gpasswd -a &#8220;username&#8221; wireshark</li>
</ol>
<p>&nbsp;</p>
<p>참조</p>
<ul>
<li><a title="Platform-Specific information about capture privileges" href="http://wiki.wireshark.org/CaptureSetup/CapturePrivileges">Platform-Specific information about capture privileges</a></li>
<li><a title="archlinux wireshark" href="https://wiki.archlinux.org/index.php/Wireshark">archlinux wireshark</a></li>
<li><a title="Running Wireshark as regular user" href="https://bbs.archlinux.org/viewtopic.php?id=91968">Running Wireshark as regular user</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://bebop.emstone.com/2011/10/13/install-wireshark-on-arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>구글 프로토콜 버퍼(Protocol Buffers)</title>
		<link>http://lethean.pe.kr/2010/02/12/google-protocol-buffers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-protocol-buffers&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25ea%25b5%25ac%25ea%25b8%2580-%25ed%2594%2584%25eb%25a1%259c%25ed%2586%25a0%25ec%25bd%259c-%25eb%25b2%2584%25ed%258d%25bcprotocol-buffers</link>
		<comments>http://lethean.pe.kr/2010/02/12/google-protocol-buffers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=google-protocol-buffers#comments</comments>
		<pubDate>Fri, 12 Feb 2010 00:42:42 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Wireshark]]></category>
		<category><![CDATA[카스탈리엔]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=1261</guid>
		<description><![CDATA[구글 프로토콜 버퍼 라이브러리에 대해서는 몇 번 언급을 한 적이 있는데, 관심만 있고 아직 프로젝트에 사용은 못해보고 있었습니다. 그 이유는 프로젝트 대부분이 C 언어를 사용하는데, 공 <a href="http://lethean.pe.kr/2010/02/12/google-protocol-buffers/?utm_source=rss&#38;utm_medium=rss&#38;utm_campaign=google-protocol-buffers">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[구글 프로토콜 버퍼 라이브러리에 대해서는 몇 번 언급을 한 적이 있는데, 관심만 있고 아직 프로젝트에 사용은 못해보고 있었습니다. 그 이유는 프로젝트 대부분이 C 언어를 사용하는데, 공식적으로 지원하는 언어에는 없었기 때문입니다. 그런데 오늘 우분투 패키지를 업데이트하다가 protobuf-c 우분투 패키지가 있어서 확인해보니, 프로토콜 &#8230; <a href="http://lethean.pe.kr/2010/02/12/google-protocol-buffers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2010/02/12/google-protocol-buffers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>0MQ: 메시지 시스템 라이브러리</title>
		<link>http://lethean.pe.kr/2010/01/29/0mq-a-new-approach-to-messaging/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=0mq-a-new-approach-to-messaging&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=0mq-%25eb%25a9%2594%25ec%258b%259c%25ec%25a7%2580-%25ec%258b%259c%25ec%258a%25a4%25ed%2585%259c-%25eb%259d%25bc%25ec%259d%25b4%25eb%25b8%258c%25eb%259f%25ac%25eb%25a6%25ac</link>
		<comments>http://lethean.pe.kr/2010/01/29/0mq-a-new-approach-to-messaging/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=0mq-a-new-approach-to-messaging#comments</comments>
		<pubDate>Fri, 29 Jan 2010 06:50:49 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Embedded]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[카스탈리엔]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=1215</guid>
		<description><![CDATA[LWN.net에서 0MQ라는 매우 흥미로운 라이브러리를 소개하길래 조금 자세히 살펴 보았습니다. 일단 소개부터 하자면, BSD 소켓 비슷한 API를 지원하는 경량 메시지 시스템입니다. 소켓 비슷한 API라... <a href="http://lethean.pe.kr/2010/01/29/0mq-a-new-approach-to-messaging/?utm_source=rss&#38;utm_medium=rss&#38;utm_campaign=0mq-a-new-approach-to-messaging">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[LWN.net에서 0MQ라는 매우 흥미로운 라이브러리를 소개하길래 조금 자세히 살펴 보았습니다. 일단 소개부터 하자면, BSD 소켓 비슷한 API를 지원하는 경량 메시지 시스템입니다. 소켓 비슷한 API라고 하지만, 소켓보다 사용하기 훨씬 편합니다. 실행 중 차지하는 용량이 1~20 KB 정도밖에 안될 뿐 아니라, 처음 &#8230; <a href="http://lethean.pe.kr/2010/01/29/0mq-a-new-approach-to-messaging/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2010/01/29/0mq-a-new-approach-to-messaging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>SSH 디렉토리 백업하기</title>
		<link>http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssh-%25eb%2594%2594%25eb%25a0%2589%25ed%2586%25a0%25eb%25a6%25ac-%25eb%25b0%25b1%25ec%2597%2585%25ed%2595%2598%25ea%25b8%25b0</link>
		<comments>http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 07:35:06 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[카스탈리엔]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=1185</guid>
		<description><![CDATA[시간이 갈수록 자주 사용하는 명령어를 기억하지 못해 동일한 검색어로 구글링을 반복하는 경우가 점점 많아져서, 그런 수고를 덜기 위해 여기에 적어두는 글입니다.
SSH 원격 셸 명령어를 이용하여 디렉토리 전체를 복사하고자 할 때, 특히 파일의 수정일시, 권한, 심볼릭 링크 등을 그대로 이전하고자 할때 다음과 같이 실행하면 됩니다.

$ tar czpf - . &#124; ssh lethean@hades &#34;tar xzpvf - -C [...] <a href="http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[시간이 갈수록 자주 사용하는 명령어를 기억하지 못해 동일한 검색어로 구글링을 반복하는 경우가 점점 많아져서, 그런 수고를 덜기 위해 여기에 적어두는 글입니다.
SSH 원격 셸 명령어를 이용하여 디렉토리 전체를 복사하고자 할 때, 특히 파일의 수정일시, 권한, 심볼릭 링크 등을 그대로 이전하고자 할때 다음과 같이 실행하면 됩니다.

$ tar czpf - . &#124; ssh lethean@hades &#34;tar xzpvf - -C [...]]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>tcpdump를 이용한 네트워크 사용량 측정하기</title>
		<link>http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tcpdump%25eb%25a5%25bc-%25ec%259d%25b4%25ec%259a%25a9%25ed%2595%259c-%25eb%2584%25a4%25ed%258a%25b8%25ec%259b%258c%25ed%2581%25ac-%25ec%2582%25ac%25ec%259a%25a9%25eb%259f%2589-%25ec%25b8%25a1%25ec%25a0%2595%25ed%2595%2598%25ea%25b8%25b0</link>
		<comments>http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 06:30:24 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=1152</guid>
		<description><![CDATA[업무상 실제 패킷 사용량을 측정할 필요때문에 여러가지 도구를 찾던 중 마땅한 걸 찾지 못해 직접 측정한 방식을 정리해 봅니다. 물론 이보다 더 좋은 방법들이 당연히 있을테지만, tcpdump 프로그램만 겨우 사용할 수 있는 환경에서 측정하는 법을 정리한 문서를 찾지 못해 남겨둡니다.
우선 어떤 방식으로든 해당 장비에 tcpdump 프로그램을 설치합니다.
그리고 측정하려는 과정이나 단계가 시작하는 동시에 다음과 같이 tcpdump [...] <a href="http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[업무상 실제 패킷 사용량을 측정할 필요때문에 여러가지 도구를 찾던 중 마땅한 걸 찾지 못해 직접 측정한 방식을 정리해 봅니다. 물론 이보다 더 좋은 방법들이 당연히 있을테지만, tcpdump 프로그램만 겨우 사용할 수 있는 환경에서 측정하는 법을 정리한 문서를 찾지 못해 남겨둡니다.
우선 어떤 방식으로든 해당 장비에 tcpdump 프로그램을 설치합니다.
그리고 측정하려는 과정이나 단계가 시작하는 동시에 다음과 같이 tcpdump [...]]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>우분투에서 이더넷 장치 변경시 장치번호 초기화</title>
		<link>http://lethean.pe.kr/2009/08/14/init-eth-dev-number-when-lan-card-changes-in-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25ec%259a%25b0%25eb%25b6%2584%25ed%2588%25ac%25ec%2597%2590%25ec%2584%259c-%25ec%259d%25b4%25eb%258d%2594%25eb%2584%25b7-%25ec%259e%25a5%25ec%25b9%2598-%25eb%25b3%2580%25ea%25b2%25bd%25ec%258b%259c-%25ec%259e%25a5%25ec%25b9%2598%25eb%25b2%2588%25ed%2598%25b8-%25ec%25b4%2588%25ea%25b8%25b0%25ed%2599%2594</link>
		<comments>http://lethean.pe.kr/2009/08/14/init-eth-dev-number-when-lan-card-changes-in-ubuntu/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 07:18:17 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=984</guid>
		<description><![CDATA[이더넷 랜카드를 교체하거나, 온보드 이더넷을 CMOS에서 비활성화하고 랜카드만 사용하고 싶거나 또는 그 반대인 경우, 우분투에서 사용하는 udev 데몬은 자동으로 새로 인식한 이더넷 장치에게는 기존 이더넷 장치와 충돌하지 않도록 새로운 이더넷 번호를 할당하고 기억합니다. 예를 들면, eth0 장치가 없는데도, eth0 대신 eth1 장치로 인식하게 됩니다.
이는 장치마다 다른 설정을 장비 구성이 달라지더라도 고유하게 계속 유지할 수 있도록 [...] <a href="http://lethean.pe.kr/2009/08/14/init-eth-dev-number-when-lan-card-changes-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[이더넷 랜카드를 교체하거나, 온보드 이더넷을 CMOS에서 비활성화하고 랜카드만 사용하고 싶거나 또는 그 반대인 경우, 우분투에서 사용하는 udev 데몬은 자동으로 새로 인식한 이더넷 장치에게는 기존 이더넷 장치와 충돌하지 않도록 새로운 이더넷 번호를 할당하고 기억합니다. 예를 들면, eth0 장치가 없는데도, eth0 대신 eth1 장치로 인식하게 됩니다.
이는 장치마다 다른 설정을 장비 구성이 달라지더라도 고유하게 계속 유지할 수 있도록 [...]]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2009/08/14/init-eth-dev-number-when-lan-card-changes-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>synergy 를 이용하여 여러 PC 의 키보드와 마우스 제어</title>
		<link>http://bebop.emstone.com/2008/12/24/sharing-keyboard-and-mouse-among-several-pc-with-synergy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sharing-keyboard-and-mouse-among-several-pc-with-synergy</link>
		<comments>http://bebop.emstone.com/2008/12/24/sharing-keyboard-and-mouse-among-several-pc-with-synergy/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 00:05:06 +0000</pubDate>
		<dc:creator>moonpfe</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://bebop.emstone.com/?p=272</guid>
		<description><![CDATA[synergy 는 하나의 키보드와 마우스로 여러 PC 를 제어할 수 있는 프로그램입니다. (비슷한 프로그램으로 win2vnc 가 있습니다.) Linux PC 의 호스트 이름은 Linux, Window PC 의 호스트 이름은 Window 이고 Linux PC 의 왼쪽에 Window PC 를 두고 싶다면 다음과 &#8230; <a href="http://bebop.emstone.com/2008/12/24/sharing-keyboard-and-mouse-among-several-pc-with-synergy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>synergy 는 하나의 키보드와 마우스로 여러 PC 를 제어할 수 있는 프로그램입니다. (비슷한 프로그램으로 win2vnc 가 있습니다.)</p>
<p>Linux PC 의 호스트 이름은 Linux, Window PC 의 호스트 이름은 Window 이고 Linux PC 의 왼쪽에 Window PC 를 두고 싶다면 다음과 같이 서버를 설정합니다. Linux PC 는 synergy 서버를 실행하고, Window PC 는 synergy 클라이언트를 실행합니다.</p>
<pre>section: screens
  Linux:
  Window:
end
section: links
  Linux:
    left = Window
  Window:
    right = Linux
end
section: options
end</pre>
]]></content:encoded>
			<wfw:commentRss>http://bebop.emstone.com/2008/12/24/sharing-keyboard-and-mouse-among-several-pc-with-synergy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>리눅스 터미널에서 네트웍 트래픽량 측정하기</title>
		<link>http://bebop.emstone.com/2008/12/23/network-traffic-in-linux-terminal/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=network-traffic-in-linux-terminal</link>
		<comments>http://bebop.emstone.com/2008/12/23/network-traffic-in-linux-terminal/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 03:02:03 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Diag]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://bebop.emstone.com/?p=221</guid>
		<description><![CDATA[역시 이번에도 작업 중 도움이 된 도구를 소개하려고 합니다. 이 도구는 네트웍 트래픽량을 측정하는데 사용합니다. 일반 리눅스 배포판에는 더 좋은 도구가 많겠지만, 원격에서 접속하여 터미널 장비 위에서 트래픽을 측정하기 위해서는 가벼운 도구가 좋을 것이고 화려한 UI는 필요하지 않습니다.  간단한 터미널 &#8230; <a href="http://bebop.emstone.com/2008/12/23/network-traffic-in-linux-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl></dl>
</div>
<p>역시 이번에도 작업 중 도움이 된 도구를 소개하려고 합니다. 이 도구는 네트웍 트래픽량을 측정하는데 사용합니다. 일반 리눅스 배포판에는 더 좋은 도구가 많겠지만, 원격에서 접속하여 터미널 장비 위에서 트래픽을 측정하기 위해서는 가벼운 도구가 좋을 것이고 화려한 UI는 필요하지 않습니다.  간단한 터미널 인터페이스를 지원하는 이 도구는 iftop 입니다. 동작화면은 아래와 같습니다.</p>
<div id="attachment_222" class="wp-caption alignnone" style="width: 662px"><img class="size-full wp-image-222" src="http://bebop.emstone.com/wp-content/uploads/2008/12/iftop.png" alt="터미널에서 네트웍 트래픽 측정 화면" width="652" height="439" /><p class="wp-caption-text">터미널에서 네트웍 트래픽 측정 화면</p></div>
<p>간단히 항목을 소개하면, 오른쪽에 표시되는 3가지 정보가 2초/10초/40초 동안의 평균 전송량을 표시합니다. 아래 표시되는 TX/RX/TOTAL 은 네트웍 카드로 들어온 실제 RX/TX/TOTAL 량을 나타내며 위 상태로 어느 호스트가 네트웍 점유율을 높은지 확인이 가능합니다. 모든 패킷을 분석하지 않도록 필터를 적용할 수 있습니다.</p>
<p>하얀색 바 모양으로 보이는 부분은 전송량을 그래픽하게 표현을 한 것입니다. 제일 상위에 존재하는 눈금바를 이용하여 실제 전송량을 표시하며, 상태적인 전송량을 보기에 도움이 됩니다.</p>
<p>클라이언트 동시접속 테스트를 진행하며 70개 정도의 클라이언트 장비 에뮬레이터를 이용하여 동시 접속 후, 이때 네트웍 트래픽량을 측정하는 작업에 이 도구를 이용했습니다.</p>
]]></content:encoded>
			<wfw:commentRss>http://bebop.emstone.com/2008/12/23/network-traffic-in-linux-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>Wireshark &amp; tcpdump</title>
		<link>http://lethean.pe.kr/?p=255&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wireshark-tcpdump</link>
		<comments>http://lethean.pe.kr/?p=255#comments</comments>
		<pubDate>Wed, 19 Nov 2008 11:28:02 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=255</guid>
		<description><![CDATA[Wireshark 프로그램을 이용할때, 문제의 현상이 발생하는 패턴을 모르는 경우 무작정 발생할때까지 패킷을 캡쳐해야 하는 경우가 있습니다. 이때 Wireshark 프로그램으로 무조건 캡쳐를 하면 금방 메모리가 부족해서 프로그램이 죽어버리게 됩니다. 이런 경우 tcpdump 프로그램을 이용하여 패킷을 캡쳐하여 파일에 저장하고, 현상이 발생했을때 멈추고 난뒤 캡쳐한 파일을 다시 Wireshark 프로그램에서 볼 수 있는 방법이 있습니다.
먼저 tcpdump를 설치합니다.
$ sudo apt-get [...] <a href="http://lethean.pe.kr/?p=255">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wireshark.org/">Wireshark</a> 프로그램을 이용할때, 문제의 현상이 발생하는 패턴을 모르는 경우 무작정 발생할때까지 패킷을 캡쳐해야 하는 경우가 있습니다. 이때 Wireshark 프로그램으로 무조건 캡쳐를 하면 금방 메모리가 부족해서 프로그램이 죽어버리게 됩니다. 이런 경우 tcpdump 프로그램을 이용하여 패킷을 캡쳐하여 파일에 저장하고, 현상이 발생했을때 멈추고 난뒤 캡쳐한 파일을 다시 Wireshark 프로그램에서 볼 수 있는 방법이 있습니다.</p>
<p>먼저 tcpdump를 설치합니다.</p>
<pre>$ sudo apt-get install tcpdump</pre>
<p>그리고 다음과 같이 패킷 캡쳐를 시작합니다. (물론 모두 한 줄에 적어도 됩니다)</p>
<pre>$ sudo tcpdump 
  -i eth0 
  -s 1500 
  -C 5 
  -W 3 
  -w capture.pcap 
  'host 192.168.0.100'</pre>
<p>여기서 &#8216;-i&#8217; 옵션은 네트웍 장치 이름, &#8216;-s&#8217; 옵션은 패킷 크기, &#8216;-C&#8217; 옵션은  캡쳐할 파일을 구분할 크기(MB), &#8216;-W&#8217; 옵션은 순환할 파일 갯수,  &#8216;-w&#8217; 옵션은 파일 이름 앞부분, 마지막 필터 조건에서 &#8216;host&#8217;는 캡쳐할 캡쳐의 IP 주소를 의미합니다.</p>
<p>이렇게 실행하면 &#8216;capture.pcap0&#8242;, &#8216;capture.pcap1&#8242;, &#8216;capture.pcap2&#8242; 식으로 5MB 단위로 캡쳐 파일을 생성합니다. 그리고 항상 마지막 3개 파일만 남깁니다. 캡쳐 도중 현상이 발생했다면 CTRL-C 키를 눌러 캡쳐를 멈추고, 마지막 파일을 Wireshark 프로그램 메뉴에서 &#8216;File&#8217; -&gt; &#8216;Open&#8230;&#8217; 기능을 이용해 읽어오면 됩니다.</p>
<p>더 자세한 내용은 <a href="http://www.wireshark.org/docs/wsug_html_chunked/AppToolstcpdump.html">Wireshark 매뉴얼</a>과 &#8216;man tcpdump&#8217;를 참고하시길&#8230; <img src='http://lethean.pe.kr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/?feed=rss2&#038;p=255</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>Wireshark Bad Checksum</title>
		<link>http://lethean.pe.kr/?p=251&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wireshark-bad-checksum</link>
		<comments>http://lethean.pe.kr/?p=251#comments</comments>
		<pubDate>Mon, 17 Nov 2008 08:28:10 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=251</guid>
		<description><![CDATA[네트웍 패킷을 검사하기 위해 자주 사용하는 Wireshark 프로그램을 리눅스에서 실행할때 이더넷 장치에 따라 &#8216;Bad Checksum&#8217;을 표시하며 패킷이 붉은 색으로 표시되어 눈에 거슬리는 경우가 종종 있습니다.

이는 패킷 전송시 이더넷 하드웨어가 패킷 체크섬을 계산하도록 하는 기능이 자동으로 켜져있는데, 이 부분에 오류가 있는 경우입니다. 대부분의 경우 문제를 야기하지 않지만, 때로는 IP가 제대로 할당되었는데 실제 동작을 안하는 원인이 되기도 [...] <a href="http://lethean.pe.kr/?p=251">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[네트웍 패킷을 검사하기 위해 자주 사용하는 <a href="http://www.wireshark.org/">Wireshark</a> 프로그램을 리눅스에서 실행할때 이더넷 장치에 따라 ‘Bad Checksum’을 표시하며 패킷이 붉은 색으로 표시되어 눈에 거슬리는 경우가 종종 있습니다.

<a href="http://lethean.pe.kr/wp-content/uploads/2008/11/wireshark-bad-checksum.png"><img class="aligncenter size-full wp-image-252" title="wireshark-bad-checksum" src="http://lethean.pe.kr/wp-content/uploads/2008/11/wireshark-bad-checksum.png" alt="" /></a>

이는 패킷 전송시 이더넷 하드웨어가 패킷 체크섬을 계산하도록 하는 기능이 자동으로 켜져있는데, 이 부분에 오류가 있는 경우입니다. 대부분의 경우 문제를 야기하지 않지만, 때로는 IP가 제대로 할당되었는데 실제 동작을 안하는 원인이 되기도 합니다. 따라서 이 기능을 끄고 싶을 경우가 발생하는데, 다음과 같은 명령어만 실행하면 됩니다.
<pre>$ sudo ethtool -K eth0 tx off</pre>
여기서 ‘eth0′는 장치 이름입니다. 더 궁금하시면 ‘man ethtool’을 통해 확인하시기 바랍니다.]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/?feed=rss2&#038;p=251</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
	</channel>
</rss>

