Original how TCP backlog works in LinuxThe level is limited, inevitably mistake, welcome to point out!The following are translations:When an application listen a socket (socket) to the listen state through a system call, a backlog parameter is
Speaking of the backlog, you will remember the listen backlog parameter in socket programming, which is the backlog that is processed in the Linux kernel?int listen (int sockfd, int backlog)Mans ListenYou can see an explanation about listen. THE
In a TCP connection, the most important is the connection of the TCP connection, the state between the two directions and the relationship between each system call and the state. Can often be expressed in two graphs, the first is the state
1. Background:In front of the listen backlog to the full connection and the impact of semi-connection, this article will be from the kernel source (kernel 2.6.32) Simple understanding of the service side of the three-time handshake and the backlog
In the TCP/IP protocol, backlog analysis and settings, and TCP status changes. In the TCP/IP protocol, the first section describes how to set the backlog value. What is this value? We all know that TCP requires three-way handshake when establishing
In Linux network programming, using the Listen function to listen to sockets, the use of Man in Linux, the 2nd parameter is explained as follows:
The backlog argument defines the maximum length to which the queue of pending connections for
First read this article:Http://www.cppblog.com/thisisbin/archive/2010/02/07/107444.htmlIt said it would maintain two queues, established and SYN_RCVD. The length specified by Back_log is the sum of two queues (multiplied by a factor)When the
After some hard work, I will summarize it.ListenParametersBacklog.
PS: server environment:Ubuntu12.04. Client does not matter: IMac OS X 10.7.
Let's take a look at $ man listen, which contains a passage:
If the backlog argument is greater than
The process of establishing a socket connection 1:client send a SYN request to Server2:server after receiving the request placed in the SYN queue, the maximum value of this half-connection queue is the system parameters Tcp_max_syn_ Backlog
Vulnerability title Linux kernel Unix socket backlog Local Denial of Service Vulnerability
Moderate hazard level
Public for the first time? No
Release date:
Cause of vulnerability design error
Affected Product Version
Linux kernel 2.6.x
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.