0Pricing
Linux Networking & TCP/IP for Developers · 강의

네트워크 성능 도구

`iperf`, `netstat`, `ss`와 같은 도구를 활용하여 네트워크 처리량, 지연 시간 및 활성 연결을 측정합니다.

네트워크 성능 도구은(는) CoddyKit의 무료 Linux Networking & TCP/IP for Developers 강의입니다. 이것은 4개 중 2번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Linux Networking & TCP/IP for Developers 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Linux Networking & TCP/IP for Developers 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Boost Your Network Insights

Ever wonder how fast your network truly is, or what's happening behind the scenes? In this lesson, we'll dive into powerful Linux tools to measure and understand network performance.

We'll explore iperf for bandwidth, netstat for connections, and ss for detailed socket statistics.

What is Network Performance?

Network performance isn't just about speed! It includes several key metrics:

  • Throughput: The amount of data transferred over time (e.g., Mbps).
  • Latency: The delay before a transfer of data begins (e.g., ms).
  • Jitter: Variation in latency, which can affect real-time applications.
  • Packet Loss: Data packets failing to reach their destination.

Measuring these helps diagnose slow or unreliable connections.

Meet iperf: Bandwidth Hero

iperf is a fantastic tool for measuring network throughput. It works in a client-server model, where one machine acts as a server and another as a client, sending data between them.

This allows you to test the raw speed and capacity of a link between two points in your network.

Setting up iperf as a Server

To use iperf, you first need to start a server on one machine. It will listen for incoming connections from clients.

Open a terminal on your server machine and run this command:

iperf3 -s

Running iperf as a Client

Now, on a different machine (your client), you can connect to the iperf server and start a bandwidth test. Replace <server_ip> with the actual IP address of your server.

The output will show you the transfer rate and bandwidth achieved.

iperf3 -c <server_ip>

iperf for UDP & Latency

iperf isn't just for TCP! You can also test UDP throughput and observe packet loss or jitter. UDP is often used for real-time applications where speed is critical.

To run a UDP test, add the -u flag. Try it out!

iperf3 -c <server_ip> -u -b 100M

netstat: Network Statistics

netstat (network statistics) is a classic command-line tool that displays network connections, routing tables, interface statistics, and more.

It's great for quickly seeing what ports are open and what connections are active on your system.

Viewing Active Connections with netstat

To see all active TCP and UDP connections, along with listening ports, use the following flags:

  • -t: TCP connections
  • -u: UDP connections
  • -l: Listening sockets
  • -n: Numeric addresses (don't resolve hostnames)

This gives a raw, fast overview.

netstat -tuln

Introducing ss: Socket Statistics

While netstat is useful, ss (socket statistics) is its modern, faster, and more powerful successor. It can display more information about sockets than netstat.

ss directly queries kernel data structures, making it quicker and more efficient, especially on systems with many connections.

Exploring Sockets with ss

ss uses similar flags to netstat but often provides more detail or performs faster. Here are a couple of common uses:

  • ss -tuln: Same as netstat, shows TCP/UDP listening ports.
  • ss -s: Provides a summary of socket statistics (e.g., total TCP established, UDP in use).

Give ss -s a try to see a quick summary!

ss -s

Quick Check: Performance Tools

You've learned about iperf, netstat, and ss. Which of these tools is primarily used to measure network bandwidth or throughput?

Recap: Monitor Your Network

Great job! You've explored essential tools for network performance:

  • iperf: Your go-to for measuring network throughput (bandwidth) and testing latency/jitter with TCP and UDP.
  • netstat: A classic for viewing active connections, listening ports, and basic network statistics.
  • ss: The modern, faster alternative to netstat for detailed socket information.

These tools are invaluable for diagnosing network issues and ensuring optimal performance.

자주 묻는 질문

“네트워크 성능 도구” 강의는 무료인가요?

네 — “네트워크 성능 도구” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Linux Networking & TCP/IP for Developers 강의 전체를 잠금 해제할 수 있습니다. Linux Networking & TCP/IP for Developers 강의에는 총 4개의 강의가 포함되어 있습니다.

“네트워크 성능 도구”에서 뭘 배우나요?

`iperf`, `netstat`, `ss`와 같은 도구를 활용하여 네트워크 처리량, 지연 시간 및 활성 연결을 측정합니다. 브라우저에서 직접 실행하는 실습 코드로 Linux Networking & TCP/IP for Developers을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Linux Networking & TCP/IP for Developers을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Linux Networking & TCP/IP for Developers은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 2번째 강의입니다.

“네트워크 성능 도구” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Linux Networking & TCP/IP for Developers 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Linux Networking & TCP/IP for Developers 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. Wireshark/tcpdump를 활용한 패킷 캡처
  2. 네트워크 성능 도구
  3. Linux 방화벽(Netfilter/iptables)
  4. dig 및 nslookup을 사용한 DNS 진단
← Linux Networking & TCP/IP for Developers(으)로 돌아가기