当前位置:网站首页>Network protocol: tcp/ip protocol
Network protocol: tcp/ip protocol
2022-07-26 11:58:00 【InfoQ】


- It's probably a group of signals as packets , Become a frame -Head-data
- Head: Description information ( sender --- The receiver )
- Data: Real data
- Data must be from network card to network card ( Each network card has Mac Address )
- Broadcast , Send it to all network cards of the LAN
- Solve different computers , In different LAN communication problems .
- IPV4 Determine which subnet it belongs to , independent IP More expensive . Every computer has one IP Address :192.168.1.1 altogether 32 Bit
- Put the frame inside data Divide into 2 block (Head Include IP Address + length ,data Real data )
- The frame length is limited , If exceeded , Will be broken into different bags , Every bag has it head And package serial number
- problem : Many programs in the computer use the network , Frame here , To which program ? There has to be something , Tell me to give that program .( The port change is shining ....)
- Guarantee : Information about a program on the computer , Send to a program on a computer .
- port :0~65535, among 0 To 1023 System use the . Ensure that procedures communicate with procedures
- host + port = Kit word (Socket),socket In fact, it is to ensure the interaction of programs distributed on different computers , Can do network application development
- UDP agreement , hold data Split into head+data(head Only put ports ). There is no guarantee that the data will be received . characteristic : Simple , reliable
- TCP agreement , Data accessibility , Make sure the data is not lost , Confirmation process . Complex version UDP. characteristic : Load inefficiency , Offset more resources , reliable .
- Session: Connection of each user , It's just one. Session
- AppServer:Socket Instance of the server
- Commands: The client sends back the command of data
- Used to detect whether the client is disconnected, The client is online , The server sends a heartbeat packet within the interval , The server returned a reply .
- If the heartbeat cycle , received , The server thinks you are offline
边栏推荐
- 忆凤姐
- 系统调用捕获和分析—修改内核方法添加系统调用
- 3.1 创建菜单与游戏页面——上
- 【倒计时10天】腾讯云音视频专场即将见面,千元大奖等你来拿!
- win10使用nvm安装node、npm、cnpm
- Miccai2022 paper | evolutionary multi-objective architecture search framework: application in covid-19 3D CT classification
- Pytest interface automated testing framework | introduction to fixture of pytest
- flink 写redis 比较慢,大家有啥思路优化吗?
- pytest接口自动化测试框架 | pytest获取执行数据、pytest禁用插件
- 系统调用捕获和分—Ring3层LD_PRELOAD机制进行库函数劫持
猜你喜欢

Audio and video+

Big view +500 cases, software teams should improve R & D efficiency in this way!

3.2 create menu and game pages (Part 2)

最新心形拼图小程序源码+带流量主

Substance painter 2021 software installation package download and installation tutorial

一些常用的文章写作使用方法和技巧

Sword finger offer 25. merge two sorted linked lists

【附下载】一款强大的Web自动化漏洞扫描工具——Xray

Pytest interface automation test framework | pytest configuration file

Leetcode / Scala - sum of two numbers, three numbers, four numbers, and N numbers
随机推荐
Question and answer No. 48: geek appointment - construction path of observable system
征婚故事
Redis实现Single单点登入详解
【通信原理】第二章 -- 确知信号
Practice of microservice in solving Library Download business problems
Modeling essay series 150 SCLC engineering experiment 3-srule
Sunflower senior product director technology sharing: how to apply in AD domain environment
种种迹象表明,Apple将有望支持AV1
常用的 list.isEmpty() 为何突然报null?
Pytest interface automation test framework | use decorators to decorate the use cases that need to be run
Recalling Sister Feng
【通信原理】第三章 -- 随机过程[上]
win10使用nvm安装node、npm、cnpm
System call capture and analysis - ring layer kprobe hijacks system calls
Miccai2022 paper | evolutionary multi-objective architecture search framework: application in covid-19 3D CT classification
V01 - XX,记录美好生活从日志开始
2022就业季!Adobe助力创意产业工作者,突破技能桎梏,回归能力本源
Understanding useref is enough
国内11所“袖珍”大学!在校园跑步,还没加速就出校门了...
Audio and video technology development weekly | 255