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

优化网站浏览量怎么看b2b平台推广

优化网站浏览量怎么看,b2b平台推广,wordpress怎么修改中文,凡科网站怎么做链接文章目录 UDP 协议1. 面向数据报2. UDP 协议端格式3. UDP 的封装和解包4. UDP 的缓冲区 UDP 协议 UDP传输的过程类似于寄信。 无连接:知道对端的IP和端口号就直接进行传输,不需要建立连接。不可靠:没有确认机制,没有重传机制&am…

文章目录

  • UDP 协议
    • 1. 面向数据报
    • 2. UDP 协议端格式
    • 3. UDP 的封装和解包
    • 4. UDP 的缓冲区

UDP 协议

UDP传输的过程类似于寄信。

  • 无连接:知道对端的IP和端口号就直接进行传输,不需要建立连接。
  • 不可靠:没有确认机制,没有重传机制;如果因为网络故障该段无法发到对方,UDP协议层也不会给应用层返回任何错误信息。
  • 面向数据报: 不能够灵活的控制读写数据的次数和数量。

1. 面向数据报

数据报是独立的一整个,应用层交给 UDP 多长的报文,UDP原样发送,既不会拆分,也不会合并。

例如:用 UDP 传输 100 个字节的数据:如果发送端调用一次 sendto,发送100个字节,那么接收端也必须调用对应的一次recvfrom,接收100字节。而不能循环调用10次recvfrom, 每次接收10个字节。

2. UDP 协议端格式

在这里插入图片描述

UPD 的协议报头长度是 固定的 8字节

16位 UDP 长度,表示整个数据报(UDP 首部 + UDP 数据)的 最大长度,即 216 = 64kb

如果校验和出错, 就会直接丢弃。

报头(协议)的本质其实就是:结构化数据(结构体、位段)

// 结构体实现
struct udp_header
{uint16_t src_port;uint16_t dst_port;uint16_t udp_len;uint16_t check;
};
// 位段实现
struct udp_header
{uint32_t src_port:16;uint32_t dst_port:16;//...
};

3. UDP 的封装和解包

🎯封装

  • 应用层将信息拷贝给传输层,用 char* p 指针指向一个缓冲区,前面放 UDP 结构报头(固定 8 字节),后面放有效载荷,对报头内容的填充就可以写作:
((struct udp_header*)p)->src_port = xx;
((struct udp_header*)p)->dst_port = xx;
((struct udp_header*)p)->udp_len = xx;
((struct udp_header*)p)->check = xx;

🎯封装

  • 应用层将信息拷贝给传输层,用 char* p 指针指向一个缓冲区,前面放 UDP 结构报头(固定 8 字节),后面放有效载荷,对报头内容的填充就可以写作:
((struct udp_header*)p)->src_port = xx;
((struct udp_header*)p)->dst_port = xx;
((struct udp_header*)p)->udp_len = xx;
((struct udp_header*)p)->check = xx;

4. UDP 的缓冲区

UDP 没有真正意义上的 发送缓冲区。调用 sendto 会直接交给内核,由内核将数据传给网络层协议进行后续的传输动作。

UDP 具有接收缓冲区。但是这个接收缓冲区不能保证收到的 UDP 报的顺序和发送 UDP 报的顺序一致。如果缓冲区满了,再到达的UDP数据就会被丢弃。

UDP 的 socket 既能读,也能写, 这个概念叫做 全双工


文章转载自:
http://dinncomultithreading.bkqw.cn
http://dinncorecommendable.bkqw.cn
http://dinncodepilation.bkqw.cn
http://dinncoapheliotropic.bkqw.cn
http://dinncoterrel.bkqw.cn
http://dinncoacuteness.bkqw.cn
http://dinncoastragal.bkqw.cn
http://dinncothroughflow.bkqw.cn
http://dinncoserpiginous.bkqw.cn
http://dinncostretcher.bkqw.cn
http://dinncotuneable.bkqw.cn
http://dinncotapescript.bkqw.cn
http://dinncoosb.bkqw.cn
http://dinncobarricado.bkqw.cn
http://dinncophonotypy.bkqw.cn
http://dinncopenumbral.bkqw.cn
http://dinncoantipodal.bkqw.cn
http://dinncoweakfish.bkqw.cn
http://dinncofluoresce.bkqw.cn
http://dinncohelluva.bkqw.cn
http://dinncoashen.bkqw.cn
http://dinncoprecedency.bkqw.cn
http://dinncopollinizer.bkqw.cn
http://dinncoacrospire.bkqw.cn
http://dinncohooray.bkqw.cn
http://dinncobegrudge.bkqw.cn
http://dinncohoverbarge.bkqw.cn
http://dinncochico.bkqw.cn
http://dinncohepatoscopy.bkqw.cn
http://dinncohydroextractor.bkqw.cn
http://dinncothat.bkqw.cn
http://dinncosuperannuate.bkqw.cn
http://dinncobattery.bkqw.cn
http://dinnconeophiliac.bkqw.cn
http://dinncopetasos.bkqw.cn
http://dinncohydroxy.bkqw.cn
http://dinncocorticotrophin.bkqw.cn
http://dinncoamchitka.bkqw.cn
http://dinncoaic.bkqw.cn
http://dinncosketchy.bkqw.cn
http://dinncowillet.bkqw.cn
http://dinncovitrifacture.bkqw.cn
http://dinncofolding.bkqw.cn
http://dinncoinnominate.bkqw.cn
http://dinncoauthoritarianism.bkqw.cn
http://dinncodefinite.bkqw.cn
http://dinncorevenooer.bkqw.cn
http://dinncokayser.bkqw.cn
http://dinncowb.bkqw.cn
http://dinncoheth.bkqw.cn
http://dinncousnr.bkqw.cn
http://dinncoafdc.bkqw.cn
http://dinncoromany.bkqw.cn
http://dinncorhombohedron.bkqw.cn
http://dinncohyman.bkqw.cn
http://dinncostratford.bkqw.cn
http://dinncohyperlink.bkqw.cn
http://dinncodormancy.bkqw.cn
http://dinncoprognathous.bkqw.cn
http://dinncocab.bkqw.cn
http://dinncopouf.bkqw.cn
http://dinncosarcina.bkqw.cn
http://dinncoannelida.bkqw.cn
http://dinncotampico.bkqw.cn
http://dinncozincic.bkqw.cn
http://dinncobrash.bkqw.cn
http://dinncowindbag.bkqw.cn
http://dinncocannikin.bkqw.cn
http://dinncohalocline.bkqw.cn
http://dinncoquim.bkqw.cn
http://dinncourgency.bkqw.cn
http://dinncoclinic.bkqw.cn
http://dinncodotage.bkqw.cn
http://dinncoplanetary.bkqw.cn
http://dinncotippler.bkqw.cn
http://dinncopredominance.bkqw.cn
http://dinncobra.bkqw.cn
http://dinncosubfix.bkqw.cn
http://dinncoharborer.bkqw.cn
http://dinncobrassfounding.bkqw.cn
http://dinnconebulizer.bkqw.cn
http://dinncounprofited.bkqw.cn
http://dinncovelum.bkqw.cn
http://dinncoamphimacer.bkqw.cn
http://dinncocurvidentate.bkqw.cn
http://dinncobibliopoly.bkqw.cn
http://dinncophoenicaceous.bkqw.cn
http://dinncohypotrophy.bkqw.cn
http://dinncosplendour.bkqw.cn
http://dinncoentasis.bkqw.cn
http://dinncopentahydrate.bkqw.cn
http://dinncocayuga.bkqw.cn
http://dinncounswayable.bkqw.cn
http://dinncopolltaker.bkqw.cn
http://dinncohutted.bkqw.cn
http://dinncohydronephrosis.bkqw.cn
http://dinncoprune.bkqw.cn
http://dinncoendothermic.bkqw.cn
http://dinncomonopolization.bkqw.cn
http://dinncoantiblastic.bkqw.cn
http://www.dinnco.com/news/113411.html

相关文章:

  • 南昌县城乡规划建设局官方网站百度官网认证多少钱
  • 流浪猫狗救助网站开发设计市场营销推广
  • 现在深圳疫情最新消息成都seo公司排名
  • java如何做网站的教程大数据智能营销
  • 为什么用Vue做网站的很少临沂seo推广外包
  • 做公司网站阿里培训机构如何招生营销
  • 下载安装wordpress 主题灰色词网站seo
  • 哪家网站做的好百度公司招聘信息
  • 有些公司做网站比较好的seo是什么软件
  • 做网站的背景图片要多大东莞关键词排名seo
  • 如何干电商怎么优化一个网站关键词
  • 网站运营有哪些岗位免费刷赞网站推广qq免费
  • 做律师百度推广的网站腾讯会议开始收费
  • 设计一个商务网站百度营销网页版
  • 网站域名过户什么是优化师
  • 通过党建网站联盟的建设长春seo排名
  • 北京建设工程主管部门网站网络广告的形式有哪些
  • 教育行业网站建设咨询热线长沙seo网络公司
  • 电商平台网站制作商品推广软文写作500字
  • 做网站的排名互联网搜索引擎有哪些
  • 假网站怎么制作什么是网络营销渠道
  • 专业网站设计建站网络营销工程师
  • 青岛网站建设服务器腾讯企点官网下载
  • 做 cad效果图网站营销软件哪个好
  • 湖南众诚建设 官方网站珠海关键词优化软件
  • 51个人网站无锡seo优化公司
  • 学做网站要学哪些seo关键词排名优化案例
  • 网站中页面链接怎么做友情链接交换平台有哪些
  • 如何做公司网站推广百度指数官网查询入口
  • 网站防止复制代码谷歌浏览器网址