Ağ Performansı Araçları
Ağ aktarım hızını, gecikmeyi ve etkin bağlantıları ölçmek için `iperf`, `netstat` ve `ss` gibi araçlardan yararlanın.
Ağ Performansı Araçları, CoddyKit'te ücretsiz bir Linux Networking & TCP/IP for Developers dersidir. Bu, 4 dersinin 2. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Linux Networking & TCP/IP for Developers öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Linux Networking & TCP/IP for Developers kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
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 -sRunning 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 100Mnetstat: 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 -tulnIntroducing 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 -sQuick 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 tonetstatfor detailed socket information.
These tools are invaluable for diagnosing network issues and ensuring optimal performance.
Sıkça Sorulan Sorular
“Ağ Performansı Araçları” dersi ücretsiz mi?
Evet — “Ağ Performansı Araçları” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Linux Networking & TCP/IP for Developers kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Linux Networking & TCP/IP for Developers kursu toplamda 4 dersten oluşur.
“Ağ Performansı Araçları” dersinde ne öğreneceğim?
Ağ aktarım hızını, gecikmeyi ve etkin bağlantıları ölçmek için `iperf`, `netstat` ve `ss` gibi araçlardan yararlanın. Linux Networking & TCP/IP for Developers ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Linux Networking & TCP/IP for Developers öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Linux Networking & TCP/IP for Developers, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 2. dersidir.
“Ağ Performansı Araçları” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Linux Networking & TCP/IP for Developers dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Linux Networking & TCP/IP for Developers dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Wireshark/tcpdump ile Paket Yakalama
- Ağ Performansı Araçları
- Linux Güvenlik Duvarı (Netfilter/iptables)
- dig ve nslookup ile DNS Tanılaması