original articles, reproduced please specify: reproduced from the system technology non-amateur researchThis article link address: qperf measuring network bandwidth and latencyWhen we are doing Web servers, we are usually concerned about the bandwidth and latency of the network. Because many of our protocols are request-reponse protocols,
Muduo network programming example 5: measure the network latency of two machines
Chen Shuo (giantchen_at_gmail)
Blog.csdn.net/solstice t.sina.com.cn/giantchen
This is the fifth article in The muduo network programming example series.Article.
Muduo full article list:
1 Introduction to Analog delay transmission
Netem and Tc:netem are a network emulation module provided by the Linux kernel version 2.6 and above. This function module can be used to simulate complex Internet transmission performance in a well performing LAN, such as low bandwidth, transmission delay, packet loss, and so on. Many distributions Linux that use the
Measure the test taker's knowledge about network performance tools in Linux.
There are a lot of Network Tools on Linux. How can I select a name-filling tool based on actual needs? Here is a brief introduction:
Observe the network
For more information, see vloveiyhttp: // ffown.sinaapp.com /? P = 40
CPU name: Intel (r) Xeon (r) CPU e5405 @ 2.00 GHzProcessor: 4CPU MHz: 1995.021
IPC latency:
IPC type: messagesize: average latency:UNIX socket 10 k 9usLocalhost TCP 10 k 11usPipe 10 k 6usRemote TCP 10 k 13us
IPC throughput:IPC type: messagesize: average throughput/MSG: average throughput/m:UNIX socket 10 k 183049 MSG/s 14643 MB/SLocalhost TCP 10 k 113901 MSG/s 9112 MB/SPipe 10 k
This article introduces a simple network program roundtrip, which is used to measure the network latency between two machines, that is, "roundtrip time/round trip Time/rtt". This article mainly examines the tcp_nodelay of the fixed-length TCP message and the function of the packet.
The code for this article is shown i
Measure the test taker's knowledge about a vulnerability in TCL. Internal network penetration Teaching: internal network information detection and post-penetration preparation
I was planning to send the message to Renren, but what I was forced to do was that I just got out of the Intranet and the server went down. Let's wait for the next case to send the message
Ask for help! About network latency! -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. I recently studied network latency. I have learned from some papers that
. Because the accuracy of the loops_per_second value is only 8 bits, when calculating a longer latency, a considerable error will be accumulated. Although the maximum latency allowed is nearly 1 S (because the longer latency will overflow), the maximum recommended udelay function parameter is 1000us (1 ms ). The mdelay function can be used when the
This is a BDP test in rhca, which is also a very common simulation of latency and packet loss. I will share it with you now.
We also use the application software to test TCP/UDP comparison. When we test the impact of BDP on TCP/IP, we all need some network latency and packet loss simulation, many commercial software can do this. In fact, the perfect
Handling, Workaround:1. Check if an error is configured of DNS, If you have to remove it first;through vi/etc/sysconfig/network-scripts/ifcfg-em0 command to enter the NIC em0 the configuration file that will take DSN after the content is deleted, and then run the command to restart the network connection, Service Network Restart2. To change the value of the conf
function returns, any work function that was committed before the call does not run anywhere on the system.After you have finished using the work queue, you can call the following function to release the related resources:void Destroy_workqueue (struct work_queue_struct *queue);Shared queuesThe device driver can use the shared default work queue provided by the kernel.Initializing the WORK_STRUCT structurestatic struct work_struct jiq_work;Init_work (jiq_work, Jiq_print_wq, jiq_data);int schedu
www.baidu.com (-c 5 indicates that the ping command is executed five times)
Analysis of nodes between two hosts: traceroute
With traceroute, we can know the path from your computer to the host on the other end of the Internet. Of course, the path for each packet to arrive at the same destination from a certain source may be different, however, most of the time the routes are the same. In linux, traceroute is called tracert in MS Windows. Tracerout
Tags: increase stress test grouping cause remote result Cache network environment duplicationNetwork performance evaluation is mainly to monitor network bandwidth usage, maximizing network bandwidth utilization is the basis of network performance, but due to unreasonable network
graphical interfacetcpump(Packet tracking) features.
iperf
Measure the network performance of TCP and UDP, measure the maximum bandwidth, and report the loss of latency and datagram.
Conclusion
Try to use the techniques and techniques described in this article to improve the performance of socke
Linux mainly uses three types of network management commands: 1.ifconfig, route and Netstat belong to the traditional function of single-class network command; 2.ip and SS belong to the Integrated class Network command; The 3.NMCLI is suitable for comprehensive network comma
restored to the default value. You can use/Etc/sysctl. conf configure these parameters to the values you set when the system starts.
GNU/Linux tools
GNU/Linux
It is very attractive to me because there are many tools available for use. Although most of them are command line tools, they are both very useful and intuitive. GNU/Linux
Several tools are pro
(CPU execution
Time), the proportion of time spent by the three is about 250: 30: 1, which is based on the packet size of bytes.
The larger the ratio of the three, the longer the transmission (or receipt) and DMA packets are the time bottlenecks.
During interrupt processing, it takes a little longer to "New packets arrive" than "packet transfer completed.
Keywords:
Linux, Protocol driver, network card driv
in the Linux distribution, there is a/proc/directory, some also called it the proc file system. In this directory, there are special files that can be used not only to reflect the current state of the kernel and to view hardware information, but also to allow users to modify the contents of the kernel to adjust the current working state of the kernels, such as files under the/proc/sys/subdirectory. Unlike other directories in the/proc/directory, file
Simulate the network packet sending and receiving delay for the specified IP port on Linux.
When compiling network applications, we usually test and debug the network on a LAN or even a local machine. Is there a way to simulate a complex Internet environment-especially network
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.