当前位置:网站首页>Network planning | [five transport layers and six application layers] knowledge points and examples
Network planning | [five transport layers and six application layers] knowledge points and examples
2022-06-30 20:08:00 【Xipi yo】
One 、 Knowledge point
Transport layer
1、 Transport layer
The transport layer is also called the transport layer , be located application layer And network layer , Is the core of the layered network architecture . The role of the transport layer is based on the services provided by the communication subnet , Provide effective and reasonable transmission services for the application layer . So that high-level users do not have to care about the details of communication subnet implementation and specific quality of service when communicating with each other .

(1) Communication between two hosts is actually Application processes in both hosts communicate .
(2) The transport layer performs error checking and detection for the entire message segment , This is different from checking only the first checksum field IP.
(3) Depending on the application , The transport layer needs to execute different transport protocols to provide reasonable transport services ,TCP A full duplex reliable logical channel is established between transmission entities for applications ,UDP Provides unreliable connectionless services .
(4) The existence of transport layer makes transport service more reasonable and effective than network service .
(5) The transport layer uses a standard primitive set to provide transport services .
Transport layer port :UDP and TCP Both use ports to communicate with the upper application . A port is a transport layer service access point , Is the interface of the user process . The port is the identification of the application layer process .
The port number has local meaning only , That is, the end slogan is only to identify the processes in the application layer of the computer .

Socket :IP Combination of address and port number
Provide multiplexing / Split service .
- Multiplexing ( For sending host )︰ From different Socket Collect data blocks , And for each Data blocks Encapsulate the first message , Generate message segment , To the network layer .
- Deliver the data correctly to the target application process .
- Demultiplexing ( For the receiving host )︰ Deliver the data in the message segment to the correct socket .
- Different processes use the same transport layer protocol to transmit data .


A reliable agreement : Use the confirmation mechanism to confirm the transmitted data


application layer
1、 Network application mode

2、 The domain name system DNS
- domain name (Domain Name): A computer / The name of the computer group
- IP Address : A network / The logical address of a computer
- IP The address can be understood as the receiving address , The domain name can be understood as the recipient ~
- The domain name system DNS ( Domain Name System ) It's the naming system used by the Internet , A host name with a specific meaning that is easy for people to remember ( Such as www.cskaoyan.com ) Convert to machine-friendly IP Address .
- IP
Host name with specific meaning - Ethernet card corresponds to ip. A host with multiple Ethernet cards , There are many. IP Address .
- 1. Local domain name server ︰ Every Internet service provider ISP, Or a university , Even a department in a University , Can have a local domain name server . When a host sends DNS When querying a request , This query request message is sent to the local domain name server of the host .
- ⒉. Root domain server ∶ At the highest level Domain name server . No matter which local domain name server , As long as you can't resolve a domain name on the Internet , First, help the root domain name server .
- 3. Authorized domain name server ︰ Each host must be at the authorized domain name server registration , It can always Converts the hostname it governs to the name of the host IP Address .
- 4. Top-level domain server ︰ Responsible for the management of all secondary domain names registered in the top-level domain name server . When I received DNS When querying a request , Give the corresponding answer .
- Single DNS name ~ Multiple IP Address /mac Address
- Single DNS name ~ Multiple hosts
- Internet The host that provides customer access on does not have to have a domain name .
- The same domain name may resolve different characters at different times IP Address .
- Multiple domain names can point to the same host IP Address .
- IP The host in the subnet can maintain its mapping by different domain name servers .
2、
- The server is dedicated to completing certain services , The client is the consumer of these services .
- The client is usually on the front end , Servers are usually located on the back end .
- The client and server realize the collaborative computing task through the network .
- The client is user oriented , The server is task oriented .
3、FTP A working model

The client port is optional , The server port is fixed .
When the connection : Control first 、 Post data
When disconnected : Data first 、 Rear control
Whether to use TCP20 The establishment of data connection by port is related to the transmission mode :
- Use it in an active way TCP20 port
- The passive mode is determined by the server and the client through negotiation ( port >1024)

FTP Provide the following functions ︰
1) Provide different kinds of host systems ( hard 、 Software architecture can be different ) File transfer capability between .2) Provide user access to remote control in the way of user rights management FTP File management capabilities on the server .3) Anonymity FTP To provide the ability of public file sharing .
notes :FTP Not suitable for sharing read-write files between two computers .
3、“ anonymous ”FTP The server
A large part of the Internet FTP The server is called “ anonymous ”(Anonymous)FTP The server .
The purpose of this kind of server is to provide file copy services to the public , The user is not required to register with the server in advance , You don't have to get FTP Authorization of the server .
Anonymous( anonymous FTP ) It enables users to establish a connection with the remote host and copy files from the remote host anonymously , Instead of being a registered user of the remote host .
The user uses a special user name “anonymous” Sign in FTP service , You can access the files exposed on the remote host .
A service that uses a web browser to read or send e-mail (Gmail,Hotmail)——HTTP agreement
Between different mail servers ——SMTP agreement




Common port numbers
- Port of 2 A role : Judgment agreement 、 Determine whether it's a client or a server
- The client port is optional , The server port is fixed ( It can be determined whether the grouping is from client to server or vice versa )
encapsulation —— From top to bottom
Two 、 Example
TCP Provisions of the agreement HTTP( ) The port number of the process is 80.
A. Customer B. analysis C. The server D. host
【 analysis 】
Client access Web Server's HTTP The port number of the process is dynamically allocated by the operating system of the client .
The range of hosts is too wide , It includes A and C.

【 answer 】C
3、 ... and 、408 The real question
【2020 The true theme of the year 】 Suppose that the local domain name server in the network shown in the following figure only provides recursive query service , Other domain name servers only provide iterative query services ; Host access in LAN Internet Round trip time of each server on (RTT) Are all 10ms, Ignore other delays , If the host H Through hyperlinks http://www.abc.com/index.html, Request to browse plain text Web page index.html, From clicking the hyperlink to the browser receiving index.html Up to page , Minimum required 、 The longest time is :
A、10ms,40ms B、10ms,50ms C、20ms,40ms D、20ms,50ms
【 analysis 】UDP No connection needed .
边栏推荐
- exness:流动性系列-流动性清洗和反转、决策区间
- Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
- Filebeat custom indexes and fields
- 一文读懂目标检测:R-CNN、Fast R-CNN、Faster R-CNN、YOLO、SSD「建议收藏」
- How does an in memory database take advantage of memory?
- Which brokerage has the lowest commission? In addition, is it safe to open a mobile account?
- This morning, investors began to travel collectively
- Detailed steps for Django to upload excel tables and write data to the database
- 消灭Bug,开发者不可不知的几款Bug探索测试神器。
- 盘点华为云GaussDB(for Redis)六大秒级能力
猜你喜欢

【450. 删除二叉搜索树中的节点】

KubeVela 1.4:让应用交付更安全、上手更简单、过程更透明

Idle fish is hard to turn over

新出生的机器狗,打滚1小时后自己掌握走路,吴恩达开山大弟子最新成果
Source code analysis of redis ziplist compressed list

4.3寸触控屏12路控制端口可编程网络中控支持5台中控主机相互备份
Django上传excel表格并将数据写入数据库的详细步骤

MySQL billing Statistics (Part 1): MySQL installation and client dbeaver connection

漏洞扫描工具大全,妈妈再也不用担心我挖不到漏洞了

Primary school, session 3 - afternoon: Web_ xxe
随机推荐
小学期,第三场-下午:WEB_xxe
How does an in memory database take advantage of memory?
漏洞扫描工具大全,妈妈再也不用担心我挖不到漏洞了
The former king of fruit juice sold for 1.6 billion yuan
Detailed explanation of specific methods and steps for TCP communication between s7-1500 PLCs (picture and text)
【ICCV 2019】特征超分检测:Towards Precise Supervision of Feature Super-Resolution for Small Object Detection
VR全景中特效是如何编辑的?细节功能如何展示?
c语言数组截取,C# 字符串按数组截取方法(C/S)
Torchdrug -- drug attribute prediction
S7-1500 PLC之间进行TCP通信的具体方法和步骤详解(图文)
今早,投资人开始集体出差
广州炒股开户选择手机办理安全吗?
FH6908A负极关断同步整流模拟低压降二极管控制IC芯片TSOT23-6超低功耗整流器 1w功耗 <100uA静态 替代MP6908
2022年高考都结束了,还有人真觉得程序员下班后不需要学习吗?
超视频时代的音视频架构建设|Science和英特尔联袂推出“架构师成长计划”第二季
Playwright - 滚动条操作
yolo 目标检测
建立自己的网站(20)
线下门店为什么要做新零售?
25:第三章:开发通行证服务:8:【注册/登录】接口:接收并校验“手机号和验证码”参数;(重点需要知道【利用redis来暂存数据,获取数据的】的应用场景)(使用到了【@Valid注解】参数校验)
Host name with specific meaning 