nstune command

nstune command

# 设置TCP慢启动参数
root@ns# ./nstune -p minwin=2 -p maxwin=5 -p errfreetrans=10
Connecting to nsnetsvc... nsfd=3
Changing min window from 2 to 2 ...  Done.
Changing max window from 5 to 5 ...  Done.
Changing errfreetrans from 10 to 10  ...  Done.

# 查看TCP慢启动参数
root@ns# ./nstune -d slowstart
Connecting to nsnetsvc... nsfd=3
Displaying slow start configuration ... 
Slowstart feature is Disabled
Minumum Initial Window:	      2 
Maximum Initial Window:	      5 
Err free Trans: 	     10

# 开启TCP慢启动参数
root@ns# ./nstune -y -e slowstart
Connecting to nsnetsvc... nsfd=3
 Done.

# 禁用TCP慢启动参数
root@ns# ./nstune -y -E slowstart
Connecting to nsnetsvc... nsfd=3
 Done.

# 重置TCP慢启动参数为默认值
root@ns# ./nstune -y -P slowstart
Connecting to nsnetsvc... nsfd=3
 Done.

猜你喜欢

转载自www.cnblogs.com/lsgxeva/p/8955493.html