当前位置:网站首页>Network Fundamentals (Section 1)
Network Fundamentals (Section 1)
2022-08-10 11:53:00 【Dragon Roar @~】
I: Background of Internet Development
The number of computers has become less and more, and the solution of data transmission has evolved from a single computer to complete a certain function into a situation where multiple computers cooperate to complete a certain function
Local Area Network (LAN): no more than 10KM in distance
Metropolitan Area Network (MAN): Geographical range from tens of kilometers or even hundreds of kilometers
Wide Area Network (WAN): Geographical range from hundreds of thousandsMeters to thousands of kilometers, even tens of thousands of kilometers
Two: Network Protocol
Protocol: Agreed on the format of communication between the two parties to transmit information
Network protocol: Agreed on the format of the network host when transmitting data
Content completed by the network: Transfer data from the a process of the A host to the b process of the B host
Inter-process communication: The essence of the network is also the way of inter-process communication
Network data = protocol part + application layer data
Conclusion 1: The "data" in the network not only has the data itself but also the content of the protocol. The content of the protocol helps the data to be transmitted to be correctly transmitted to the other host in the network
Conclusion 2: The programs written based on the operating system library functions are all application layer programs, and the data generated is called application layer data
Conclusion 3: The protocol part is also used in the linux operating systemThe description method, the description itself is a structure, that is, the content of the protocol part is the structure data
Three: Network Protocol Layering
OSI protocol layering
Inotgo will express
TCP/IP Layered Mode
Purpose of protocol layering
Consider from the software level: decouple the functions of the network, some are responsible for application layer data, some are responsible for the transmission between terminals, some are responsible for routing, etc.
From the implementation level: layeringAmong them, each agreement can complete its own agreement part.
Four: Encapsulation and Separation of Network Data
Package
Share
Conclusion 1:When the application layer data is transmitted through the network, it needs to be encapsulated by the network protocol stack. After reaching the peer end, it needs to be divided by the network protocol stack.
Conclusion 2: When the network protocol stack is encapsulated, the content of the protocol is added.In order to transmit correctly in the network
Five: Getting to know the ip address and MAC address for the first time
ip address
Essence: The ip address of the ipv4 version is an unsigned 32-bit integer with a range of [0,2^32-1]
Function: Identify a host in the network
dotted decimal is another form of ip address. The four bytes are divided by one byte using "."
The range of each number is [0,2^8-1], which is [0,255]
Note: One ip address can only be occupied by one machine
One machine can occupy multiple ip addressesp>
MAC address
Essence: The length is 48 bits, 6 bytes, generally expressed in the form of hexadecimal numbers plus fire (such as 08:00:27:03:fb:19)
Function: identify a specific piecePhysical network card equipment, network card equipment will have a unique MAC address in the world when it leaves the factory.
(The transmission and reception of network data is ultimately related to the network card.)
The MAC address is used for the connection in the data link layer.Node
边栏推荐
- OPNsense安装配置Zenarmor
- 石墨文档打开文档时快速定位到上次写的位置
- Centos7环境使用Mysql离线安装包安装Mysql5.7
- 负载均衡原理分析与源码解读
- Kyligence 通过 SOC 2 Type II 审计,以可信赖的企业级产品服务全球客户
- MLX90640 红外热成像仪测温传感器 手机 APP 软件 RedEye 连接详细
- Licking Exercise - 63 Find all anagrams in a string
- VSCode remote connection server error: Could not establish connection to "xxxxxx" possible error reasons and solutions
- 使用JMeter进行MySQL的压力测试
- Licking Exercise - 59 From Binary Search Trees to Greater Sum Trees
猜你喜欢
推荐6个自媒体领域,轻松易上手
3款不同类型的自媒体免费工具,有效提高创作、运营效率
蔚来-软件开发工程师一面记录
即时零售业态下如何实现自动做账?
老板加薪!看我做的WPF Loading!!!
AUTOCAD - reducing spline curve control points, the advanced CAD practice (3)
Nocalhost - 让云原生时代的开发更高效
From the product dimension, why can't we fully trust Layer2?
Spss-多元回归案例实操
Article take you understand interrupt the key driver of polling mechanism
随机推荐
Licking Exercise - 60 Maximum key-value sum of binary search subtrees
不止跑路,拯救误操作rm -rf /*的小伙儿
ViT结构详解(附pytorch代码)
面试官:项目中 Dao、Service、Controller、Util、Model 怎么划分的?
Licking Exercise - 63 Find all anagrams in a string
Interviewer: How are Dao, Service, Controller, Util, and Model divided in the project?
越折腾越好用的 3 款开源 APP
OPNsense安装配置Zenarmor
力扣练习——59 从二叉搜索树到更大和树
VSCode remote connection server error: Could not establish connection to "xxxxxx" possible error reasons and solutions
Double.doubleToLongBits() method uses
皕杰报表在传参乱码
Codeforces 862 C. Mahmoud and Ehab and the xor (技巧)
从产品角度看 L2 应用:为什么说这是一个游乐场?
微信小程序,全局变量一个地方改变了其他地方的状态也跟着改变。
WeChat applet, global variables change in one place and the state in other places also changes.
LeetCode50天刷题计划(Day 16—— 两两交换链表中的节点(9.10-10.30)
APP automation testing practice based on UiAutomator2+PageObject mode
力扣练习——60 二叉搜索子树的最大键值和
蔚来-软件开发工程师一面记录