Outils pour utilisateurs

Outils du site


informatique:system_admin:tcp

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:system_admin:tcp [07/07/2020 07:56] cyrilleinformatique:system_admin:tcp [10/11/2022 21:30] (Version actuelle) – TCP Diagram cyrille
Ligne 5: Ligne 5:
 Sources: Sources:
   * https://klaver.it/linux/sysctl.conf   * https://klaver.it/linux/sysctl.conf
 +  * https://www.slashroot.in/linux-kernel-rpfilter-settings-reverse-path-filtering
 +  * https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/
  
 +Les valeurs sont lisibles dans ''/proc/sys/net/ipv4/''
 +
 +Sur les performances:
 <code bash> <code bash>
 +$ cat /etc/security/limits.d/nofile.conf
 +
 +# debian 10.4 = 1024
 +* soft nofile 4096
 +
 $ cat /etc/sysctl.d/local.conf $ cat /etc/sysctl.d/local.conf
  
 # Increase number of incoming connections # Increase number of incoming connections
 +# debian 10.4 = 128
 net.core.somaxconn = 1024 net.core.somaxconn = 1024
 # Increase number of incoming connections backlog # Increase number of incoming connections backlog
 +# debian 10.4 = 1000
 net.core.netdev_max_backlog = 4096 net.core.netdev_max_backlog = 4096
  
 # Decrease the time default value for tcp_fin_timeout connection # Decrease the time default value for tcp_fin_timeout connection
 +# debian 10.4 = 60
 net.ipv4.tcp_fin_timeout = 15 net.ipv4.tcp_fin_timeout = 15
 # Decrease the time default value for connections to keep alive # Decrease the time default value for connections to keep alive
 +# debian 10.4 = 7200
 net.ipv4.tcp_keepalive_time = 300 net.ipv4.tcp_keepalive_time = 300
 +# debian 10.4 = 9
 net.ipv4.tcp_keepalive_probes = 5 net.ipv4.tcp_keepalive_probes = 5
 +# debian 10.4 = 75
 net.ipv4.tcp_keepalive_intvl = 15 net.ipv4.tcp_keepalive_intvl = 15
 +
 +# try to reuse time-wait connections, but don't recycle them (recycle can break clients behind NAT)
 +# debian 10.4 No such file or directory
 +#net.ipv4.tcp_tw_recycle = 0
 +# # debian 10.4 = 2
 +net.ipv4.tcp_tw_reuse = 1
 +
 +# Limit number of orphans, each orphan can eat up to 16M (max wmem) of unswappable memory
 +# debian 10.4 = 32768
 +net.ipv4.tcp_max_orphans = 16384
 +# debian 10.4 = 0
 +#net.ipv4.tcp_orphan_retries = 0
 +
 +# How many times to retry killing an alive TCP connection
 +# debian 10.4 = 15
 +#net.ipv4.tcp_retries2 = 15
 +# debian 10.4 = 3
 +#net.ipv4.tcp_retries1 = 3
  
 </code> </code>
  
-À avoir : 
-  * tcp_keepalive_time 
-  * /proc/sys/net/ipv4/tcp_tw_recycle 
-  * /proc/sys/net/ipv4/tcp_tw_reuse 
  
 +{{https://upload.wikimedia.org/wikipedia/commons/f/f6/Tcp_state_diagram_fixed_new.svg}}
  
informatique/system_admin/tcp.1594101374.txt.gz · Dernière modification : 07/07/2020 07:56 de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki