当前位置:网站首页>Network Basics (3) 01-Basic Concepts of Networks - Protocols, Host Addresses, Paths and Parameters of URL Addresses & 127.0.0.1 Local Loopback Address & View URL IP Address and Access Ping Space + URL
Network Basics (3) 01-Basic Concepts of Networks - Protocols, Host Addresses, Paths and Parameters of URL Addresses & 127.0.0.1 Local Loopback Address & View URL IP Address and Access Ping Space + URL
2022-07-30 18:01:00 【viceen】
Network Fundamentals (3) 01-Basic Concepts of Network - Protocol, Host Address, Path and Parameters & 127.0.0.1 Local Loopback Address & ViewURL IP address and access the ping space + URL & netstat -anb to view the port occupied by the machine
4. Basic Concepts of Networking
4.1 URL composition
URL (Uniform Resource Locator), Uniform Resource Locator, generally speaking, it means the complete access address of a web page in the network, it has a certain format: protocol://host address[:port]/path?querystring#anchor
- Protocol
- http
- https
- Host address, the address of the website server
- IP address
- Domain Name
- Port
- http request, default port 80
- https request, default port 443
- MySQL default port 3306
- When visiting a web page, default port can be omitted
- path
- Resources on server folder (html/css/images/js/interface)
- parameter (query string)
- The part after
- ? is in the form of a key-value pair
Example: http://itcast.cn:80/schools/students?id=18&name=zs#photo
URL role: marking resources on the network
4.2 IP address
Internet Protocol Address
- The function is to identify the address of a network device (computer, mobile phone, TV) in a specific network.
- The address of the device in a certain network, the most common format at present:
[0-255].[0-255].[0-255].[0-255]
isConsists of four numbers 0-255. - In the same network, the IP of the computer is not allowed to be the same, it is all unique
- 127.0.0.1 is the local loopback address, which can always access your computer
4.2.1 Single Network Scenario
Under a single local area network, the structure is very simple, that is, the network device (gateway) we connect assigns us an address, and within this range we can all find our address through this addressthis device.
If the device is not connected to any network, we will have a local loopback address 127.0.0.1
4.2.2 Multiple network scenarios
But when a device is on multiple networks at the same time (for example, a wired network card and a wireless network card are connected at the same time), it will become a little more complicated:
View the IP address of the URL
Use the shortcut key win+r
to open the run window, and enter cmd to open the command prompt window.Then enter ping www.baidu.com
to check the port number opened by the machine.
ping www.baidu.com // ping space + URL
Effect - query URL ip
Access Baidu via ip
4.3 Domain Name
Because IP addresses are composed of irregular numbers, it is difficult to be remembered and not conducive to wide dissemination, so some people come up with a name (alias) for IP.
Domain names cost money to register
The purchased domain name needs to be resolved to your web server, that is, let it correspond to the server IP
4.3.1 TLD (understand)
.com: Commercial Organizations
.cn: China Country/Region Domain Names .hk,
.gov: Government Websites.
.org: Agency.
.edu: Educational website.
.net: Internet service provider.
.mil: Military.
4.3.2 Special Domain Names
localhost
means the local host, corresponding to 127.0.0.1.This is a reserved domain name mainly used for local testing.
4.4 port
The computer itself is a closed environment, like a building. If there is a need for data communication, there must be a door. This door is called a port in terminology. Each port has a number, and each computer has only 65536ports (0-65535).
Generally we call the process of "occupying the door" called monitoring
The function of the port number is to identify a software in the computer and distinguish each software in the computer
Can be run from the command line:
- The
netstat -an
command monitors the port usage of the machine, and only briefly displays the ports used by the machine The netstat -anb
command monitors the port usage of the machine, including displaying the program that occupies the port
When requesting network resources, the default port can be omitted
Reference link:
- https://baike.baidu.com/item/%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF%E5%8F%A3li>
- https://baike.baidu.com/item/%E7%AB%AF%E5%8F%A3
http
default port80
https
default port is443
mysql
The default port is 3306
边栏推荐
- ByteArrayInputStream 类源码分析
- JMeter Notes 4 | JMeter Interface Introduction
- 5 个开源的 Rust Web 开发框架,你选择哪个?
- 【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6
- C陷阱与缺陷 第7章 可移植性缺陷 7.4 字符是有符号数还是无符号数
- Py程序员的七夕情人节
- 论文阅读之《Underwater scene prior inspired deep underwater image and video Enhancement (UWCNN)》
- Metaverse Web 3.0 和 DeFi大师班
- 顺通海关查验预约综合管理系统
- 首发!阿里技术大牛最新耗时半个月整理出最全MySQL性能优化和高可用架构技术宝典,直接封神!
猜你喜欢
Research on intelligent charging strategy of matlab simulink lithium-ion battery
「Redis应用与深度实践笔记」,深得行业人的心,这还不来看看?
UE5第一人称射击游戏蓝图教程
linux 安装mysql8.0 超详细教程(实战多次)
5 个开源的 Rust Web 开发框架,你选择哪个?
论文阅读之《Quasi-Unsupervised Color Constancy 》
un7.30:Linux——如何在docker容器中显示MySQL的中文字符?
这玩意儿都能优化?果然是细节都在魔鬼里。
千亿级、大规模:腾讯超大 Apache Pulsar 集群性能调优实践
基础架构之Mongo
随机推荐
数据库系统原理与应用教程(064)—— MySQL 练习题:操作题 51-61(八):查询条件的构造、通配符
编曲软件FL Studio中文版安装教程及切换语言教程
Web3时代重要基础设施深度拆解:4EVERLAND
知识蒸馏2:目标检测中的知识蒸馏
C陷阱与缺陷 第6章 预处理器
分布式消息队列平滑迁移技术实战
What are the applications of X-rays?
952. 按公因数计算最大组件大小 : 枚举质因数 + 并查集运用题
基础架构之Redis
知识蒸馏4:准备数据集并修改网络配置
【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
C陷阱与缺陷 第7章 可移植性缺陷 7.4 字符是有符号数还是无符号数
首发!阿里技术大牛最新耗时半个月整理出最全MySQL性能优化和高可用架构技术宝典,直接封神!
fast shell porting
PyTorch 猫狗分类源代码及数据集
顺通海关查验预约综合管理系统
EMC VPLEX VS2 SPS电池更换详细探讨
今年这情况。。真心推荐专科的工程师升个本!
习题:变量、常量和基本数据类型
Pagoda builds PHP adaptive lazy website navigation source code measurement