当前位置:网站首页>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 + URLEffect - 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 -ancommand monitors the port usage of the machine, and only briefly displays the ports used by the machine The netstat -anbcommand 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
httpdefault port80httpsdefault port is443mysqlThe default port is 3306
边栏推荐
- Wincc报表教程(SQL数据库的建立,wincc在数据库中保存和查询数据,调用Excel模板把数据保存到指定的位置和打印功能)
- 【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6
- 针不戳,数据库性能优化八大方案。
- 【HMS core】【FAQ】HMS Toolkit典型问题合集1
- 论文阅读之《Quasi-Unsupervised Color Constancy 》
- C陷阱与缺陷 第6章 预处理器 6.2 宏并不是函数
- 顺通海关查验预约综合管理系统
- Prometheus 基本概念
- CMake library search function does not search LD_LIBRARY_PATH
- C陷阱与缺陷 第7章 可移植性缺陷 7.2 标识符名称的限制
猜你喜欢

Dodging ice cream assassins?Crawling ice cream prices through crawlers

MySQL中的存储过程(详细篇)

17.机器学习系统的设计

linux 安装mysql8.0 超详细教程(实战多次)

Error occurred while trying to proxy request The project suddenly can't get up

un7.30:Linux——如何在docker容器中显示MySQL的中文字符?

莫队--优雅的暴力

JMeter Notes 4 | JMeter Interface Introduction

18.支持向量机(SVM)的介绍

千亿级、大规模:腾讯超大 Apache Pulsar 集群性能调优实践
随机推荐
MySQL中的存储过程(详细篇)
LayaBox---TypeScript---泛型
【解决】关于 Unity Hub 获取许可证失败 或 无响应导致无法开发的问题
Web 3.0入门教程
数据库系统原理与应用教程(067)—— MySQL 练习题:操作题 82-89(十一):数据的增、删、改操作
LayaBox---TypeScript---类
What is an ultrasonic flaw detector used for?
layaBox---TypeScript---接口
【HMS core】【FAQ】HMS Toolkit典型问题合集1
js中的基础知识点 —— BOM
Kettle(二):连接SQL Server数据库
weiit新零售小程序如何探索数字化门店的破局之路
信息学奥赛一本通 1966:【14NOIP普及组】比例简化 | 洛谷 P2118 [NOIP2014 普及组] 比例简化
JVM诊断命令jcmd介绍
多年以后「PageHelper」又深深的给我上了一课
分账系统二清解决方案如何助力电商平台合规经营?
基础架构之Mongo
FastJson反序列化漏洞(复现)
【开发者必看】【push kit】推送服务典型问题合集3
leetcode-547:省份数量