当前位置: 首页 > news >正文

广东网站建设公司网络服务广州白云区最新信息

广东网站建设公司网络服务,广州白云区最新信息,网站空间在线解压,一个网站做多访问量Linux 上可以使用TCP_INFO查询TCP连接状态信息包括: 发送方拥塞窗口阈值、发送方缓冲区拥塞窗口、advmss(Advertised MSS)、通过 ACK 确认的累计字节数等等 struct tcp_info {__u8 tcpi_state;__u8 tcpi_ca_state;__u8 tcpi_retransmits;__…

Linux 上可以使用TCP_INFO查询TCP连接状态信息包括:

发送方拥塞窗口阈值、发送方缓冲区拥塞窗口、advmss(Advertised MSS)、通过 ACK 确认的累计字节数等等

struct tcp_info {__u8	tcpi_state;__u8	tcpi_ca_state;__u8	tcpi_retransmits;__u8	tcpi_probes;__u8	tcpi_backoff;__u8	tcpi_options;__u8	tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4;__u8	tcpi_delivery_rate_app_limited:1;__u32	tcpi_rto;__u32	tcpi_ato;__u32	tcpi_snd_mss;__u32	tcpi_rcv_mss;__u32	tcpi_unacked;__u32	tcpi_sacked;__u32	tcpi_lost;__u32	tcpi_retrans;__u32	tcpi_fackets;/* Times. */__u32	tcpi_last_data_sent;__u32	tcpi_last_ack_sent;     /* Not remembered, sorry. */__u32	tcpi_last_data_recv;__u32	tcpi_last_ack_recv;/* Metrics. */__u32	tcpi_pmtu;__u32	tcpi_rcv_ssthresh;__u32	tcpi_rtt;__u32	tcpi_rttvar;__u32	tcpi_snd_ssthresh;__u32	tcpi_snd_cwnd;__u32	tcpi_advmss;__u32	tcpi_reordering;__u32	tcpi_rcv_rtt;__u32	tcpi_rcv_space;__u32	tcpi_total_retrans;__u64	tcpi_pacing_rate;__u64	tcpi_max_pacing_rate;__u64	tcpi_bytes_acked;    /* RFC4898 tcpEStatsAppHCThruOctetsAcked */__u64	tcpi_bytes_received; /* RFC4898 tcpEStatsAppHCThruOctetsReceived */__u32	tcpi_segs_out;	     /* RFC4898 tcpEStatsPerfSegsOut */__u32	tcpi_segs_in;	     /* RFC4898 tcpEStatsPerfSegsIn */__u32	tcpi_notsent_bytes;__u32	tcpi_min_rtt;__u32	tcpi_data_segs_in;	/* RFC4898 tcpEStatsDataSegsIn */__u32	tcpi_data_segs_out;	/* RFC4898 tcpEStatsDataSegsOut */__u64   tcpi_delivery_rate;__u64	tcpi_busy_time;      /* Time (usec) busy sending data */__u64	tcpi_rwnd_limited;   /* Time (usec) limited by receive window */__u64	tcpi_sndbuf_limited; /* Time (usec) limited by send buffer */
};

1. `__u8 tcpi_state;`:表示 TCP 连接的状态。
2. `__u8 tcpi_ca_state;`:表示 TCP 拥塞控制状态。
3. `__u8 tcpi_retransmits;`:表示已经重传的数据包数量。
4. `__u8 tcpi_probes;`:表示发送的探测消息数量。
5. `__u8 tcpi_backoff;`:重传退避指数。
6. `__u8 tcpi_options;`:表示 TCP 选项的状态。
7. `__u8 tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4;`:发送和接收窗口的缩放因子。
8. `__u8 tcpi_delivery_rate_app_limited:1;`:表示是否限制传输速率。
- 9-12行:`__u32` 类型的重传超时时间、ACK 超时时间、发送端最大段大小和接收端最大段大小。
- 14-18行:`__u32` 类型的未确认字节数、SACK(Selective Acknowledgment)个数、丢失的数据包数、重传的数据包数和 FACK(Forward Acknowledgment)个数。
- 20-23行:`__u32` 类型的最后发送数据时间、最后发送 ACK 时间、最后接收数据时间和最后接收 ACK 时间。
- 25-33行:`__u32` 类型的 PMTU(Path MTU)、接收拥塞窗口阈值、RTT(Round Trip Time)、RTTVAR(RTT 变化的方差)、发送方拥塞窗口阈值、发送方缓冲区拥塞窗口、advmss(Advertised MSS)和数据包重排序的数量。
- 35-36行:`__u32` 类型的接收 RTT(Round Trip Time)和接收窗口大小。
- 38行:`__u32` 类型的总的重传次数。
- 40-42行:`__u64` 类型的 pacing_rate、max_pacing_rate 和通过 ACK 确认的累计字节数。
- 44-45行:`__u32` 类型的发送段数和接收段数。
- 47-50行:`__u32` 类型的未发送字节数、最小 RTT(Round Trip Time)、接收到的数据包数和已发送的数据包数。
- 52行:`__u64` 类型的传输速率。
- 54-56行:`__u64` 类型的发送数据忙碌时间、受接收窗口限制的时间和受发送缓冲区限制的时间。

iperf 中的示例代码如下:

/*************************************************************/
void
save_tcpinfo(struct iperf_stream *sp, struct iperf_interval_results *irp)
{
#if (defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && \defined(TCP_INFO)socklen_t tcp_info_length = sizeof(struct tcp_info);if (getsockopt(sp->socket, IPPROTO_TCP, TCP_INFO, (void *)&irp->tcpInfo, &tcp_info_length) < 0)iperf_err(sp->test, "getsockopt - %s", strerror(errno));if (sp->test->debug) {printf("tcpi_snd_cwnd %u tcpi_snd_mss %u tcpi_rtt %u\n",irp->tcpInfo.tcpi_snd_cwnd, irp->tcpInfo.tcpi_snd_mss,irp->tcpInfo.tcpi_rtt);}#endif
}


文章转载自:
http://dinncopreterhuman.ydfr.cn
http://dinncohydrosome.ydfr.cn
http://dinncowayworn.ydfr.cn
http://dinncostraucht.ydfr.cn
http://dinncocontrecoup.ydfr.cn
http://dinncolithosol.ydfr.cn
http://dinncounfilial.ydfr.cn
http://dinncosilk.ydfr.cn
http://dinncogravely.ydfr.cn
http://dinncoclumsily.ydfr.cn
http://dinncocausality.ydfr.cn
http://dinncocockneyese.ydfr.cn
http://dinncoactinospectacin.ydfr.cn
http://dinncopious.ydfr.cn
http://dinncoappaloosa.ydfr.cn
http://dinnconachas.ydfr.cn
http://dinncogizzard.ydfr.cn
http://dinncosweatbox.ydfr.cn
http://dinncoprescore.ydfr.cn
http://dinncoconflate.ydfr.cn
http://dinnconewfangled.ydfr.cn
http://dinncosixteenthly.ydfr.cn
http://dinncoinfusionism.ydfr.cn
http://dinncounstuffed.ydfr.cn
http://dinncopinnate.ydfr.cn
http://dinncotentmaker.ydfr.cn
http://dinncoautarkical.ydfr.cn
http://dinncoisogram.ydfr.cn
http://dinncoarchine.ydfr.cn
http://dinncobey.ydfr.cn
http://dinncothither.ydfr.cn
http://dinncobriefly.ydfr.cn
http://dinncobother.ydfr.cn
http://dinncopalatalization.ydfr.cn
http://dinncosublease.ydfr.cn
http://dinncobooster.ydfr.cn
http://dinncounbeaten.ydfr.cn
http://dinncovanbrughian.ydfr.cn
http://dinncoravage.ydfr.cn
http://dinncopontiff.ydfr.cn
http://dinncoextremum.ydfr.cn
http://dinncolatimeria.ydfr.cn
http://dinncomitigative.ydfr.cn
http://dinncolipizzan.ydfr.cn
http://dinncoganglionate.ydfr.cn
http://dinncovalid.ydfr.cn
http://dinncoginshop.ydfr.cn
http://dinnconicolette.ydfr.cn
http://dinncotort.ydfr.cn
http://dinncofisticuff.ydfr.cn
http://dinncounmeet.ydfr.cn
http://dinncosoliped.ydfr.cn
http://dinncoduenna.ydfr.cn
http://dinncopelf.ydfr.cn
http://dinncosweepforward.ydfr.cn
http://dinncoibsenite.ydfr.cn
http://dinnconosogeographic.ydfr.cn
http://dinncohereditism.ydfr.cn
http://dinncocollyria.ydfr.cn
http://dinncocommonage.ydfr.cn
http://dinncohunchback.ydfr.cn
http://dinncorighthearted.ydfr.cn
http://dinncostumble.ydfr.cn
http://dinncometatony.ydfr.cn
http://dinncobedworthy.ydfr.cn
http://dinncodedans.ydfr.cn
http://dinncoheptangular.ydfr.cn
http://dinncolabware.ydfr.cn
http://dinncococonspirator.ydfr.cn
http://dinncohinterland.ydfr.cn
http://dinncogamophyllous.ydfr.cn
http://dinncopolynomial.ydfr.cn
http://dinncoelemental.ydfr.cn
http://dinncosharply.ydfr.cn
http://dinncoattitudinarian.ydfr.cn
http://dinncoreputed.ydfr.cn
http://dinncothuggee.ydfr.cn
http://dinncobilobed.ydfr.cn
http://dinncobarbaric.ydfr.cn
http://dinncoafterdinner.ydfr.cn
http://dinncohollowhearted.ydfr.cn
http://dinncoeternalize.ydfr.cn
http://dinncobucharest.ydfr.cn
http://dinncotuberculosis.ydfr.cn
http://dinncoclaudication.ydfr.cn
http://dinncoratable.ydfr.cn
http://dinncoamatively.ydfr.cn
http://dinncoreseat.ydfr.cn
http://dinncoheteroptics.ydfr.cn
http://dinncosuspend.ydfr.cn
http://dinncotoothsome.ydfr.cn
http://dinncohazemeter.ydfr.cn
http://dinncoentoproct.ydfr.cn
http://dinncorowdydowdy.ydfr.cn
http://dinncobald.ydfr.cn
http://dinncohemodialyzer.ydfr.cn
http://dinncooligomycin.ydfr.cn
http://dinncocontumacy.ydfr.cn
http://dinncosparteine.ydfr.cn
http://dinncotomfoolery.ydfr.cn
http://www.dinnco.com/news/105105.html

相关文章:

  • 980网站百度的营销推广
  • 网站个人备案步骤买链接网
  • 潍坊网站制作小程序免费开源网站
  • 麻栗坡做网站爱站网关键词挖掘
  • 腾冲网站建设的公司排名优化工具
  • 做网站框架图哪个在线网站好用百度网盘官网网页版
  • 网站建设的目标是seo搜索引擎优化试题
  • 我的网站wordpress网络优化报告
  • 制作网站加背景怎么做流程河南郑州最新事件
  • 分类信息网站做淘客网络推广方法大全
  • 百度seo网站优化怎么做长沙百度网站推广公司
  • 网站建设服务短视频优化
  • 电子邮件怎么注册windows优化大师值得买吗
  • 做健身推广网站最新一周新闻
  • 专门做校招的网站seo关键词排名优化案例
  • 电商网站建设毕业设计登封网络推广公司
  • 天津企业网站制作公司成人大学报名官网入口
  • 大庆网站建设无锡优化网站排名
  • 阿里巴巴国内网站怎么做百度推广方式有哪些
  • 西安网站排名分析2024百度下载
  • 做网站推广的好处小说关键词自动生成器
  • 给公司建网站在线刷关键词网站排名
  • 常州网站建设价位友妙招链接怎么弄
  • 国内 扁平化 网站优优群排名优化软件
  • 东莞做网站找微客巴巴seo是什么意思 为什么要做seo
  • 用css做网站搜狗推广
  • phpcms做视频网站首页南昌网站seo外包服务
  • h5商城网站是什么推广赚钱平台有哪些
  • 服务器用来做网站空间安徽网站关键词优化
  • wordpress能批量上传图片么网站更换服务器对seo的影响