当前位置:网站首页>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
边栏推荐
猜你喜欢

VSCode remote connection server error: Could not establish connection to "xxxxxx" possible error reasons and solutions

建校仅11年就入选“双一流” ,这所高校是凭什么做到的?

OPNsense安装配置Zenarmor

态路小课堂丨如何为CXP光模块选择光纤跳线?

常量及数据类型你还记得多少?

关于“码农”的一点自嘲解构

LeetCode50天刷题计划(Day 18—— 搜索旋转排序数组(8.50-12.00)

Unsafe的一些使用技巧
今天面了个腾讯拿38K出来的大佬,让我见识到了基础的天花板

从脚本到剪辑,影像大师亲授的后期制作秘籍
随机推荐
力扣练习——63 找到字符串中所有字母异位词
【小程序 | 启航篇】一文打通任督二脉
mysql出现:ERROR 1524 (HY000): Plugin ‘123‘ is not loaded
孩子自律性不够?猿辅导:计划表要注意“留白”给孩子更多掌控感
flask-restplus接口地址404问题
Double.doubleToLongBits()方法使用
软件架构简介
Pulling drills - 56 Finding the right interval
Stroke Practice - 62 Valid Sudokus
一文带你搞懂中断按键驱动程序之poll机制
Clicking Exercise - 64 Longest Harmonic Subsequences
不止跑路,拯救误操作rm -rf /*的小伙儿
力扣练习——64 最长和谐子序列
MLX90640 红外热成像仪测温传感器 手机 APP 软件 RedEye 连接详细
[Go WebSocket] 多房间的聊天室(一)思考篇
APP automation testing practice based on UiAutomator2+PageObject mode
蔚来-软件开发工程师一面记录
[E-commerce operation] Do you really understand social media marketing (SMM)?
StoneDB Document Bug Hunting Season 1
std::move()