OSPF BIT 类型说明
注:本文为 “OSPF BIT 类型 | LSA 类型 ” 相关文章合辑。
机翻,未校。
15 OSPF BIT Types Explained
15 种 OSPF BIT 类型说明
Rashmi Bhardwaj
Distribution of routing information within a single autonomous system in larger networks is performed using WAN based protocols such as OSPF, RIP etc. Some of these routing protocols are based on link state algorithms; OSPF is one of them which uses link state algorithm to calculate shortest path tree based on routing table database.
在更大的网络中,单个自治系统内的路由信息分发是通过诸如 OSPF、RIP 等基于广域网(WAN)的协议来实现的。其中一些路由协议基于链路状态算法,OSPF 就是其中一种,它使用链路状态算法根据路由表数据库计算最短路径树。
In today’s topic we will learn about OSPF in general, bit types in OSPF and function of each OSPF bit type.
在今天的主题中,我们将大致了解 OSPF、OSPF 中的位类型以及每种 OSPF 位类型的作用。
About OSPF
关于 OSPF
OSPF is a link state discovery routing protocol. It is designed to run in an internal single autonomous system. Each OSPF router in a network maintains an identical database to describe the topology of the autonomous system. From the OSPF routing database, a shortest path tree is constructed. In the event of topological changes, OSPF quickly utilizes the minimum routing protocol traffic. OSPF supports equal cost multi - pathing. Area routing capability is there to enable an additional level of routing protection and reduction in network traffic. OSPF routing is based on the destination IP address found in the IP packet header.
OSPF 是一种链路状态发现路由协议。它旨在运行内部单个自治系统。网络中的每个 OSPF 路由器都维护相同的数据库来描述自治系统的拓扑。从 OSPF 路由数据库构建最短路径树。在拓扑发生变化时,OSPF 会快速利用最少的路由协议流量。OSPF 支持等价多路径。区域路由功能用于启用更高级别的路由保护和减少网络流量。OSPF 路由基于在 IP 数据包报头中找到的目标 IP 地址。

We will look more in detail about OSPF bit types with their locations in the upcoming section.
在接下来的部分中,我们将更详细地了解 OSPF 位类型及其位置。
OSPF BIT Types
OSPF BIT 类型
OSPF uses various types of bits within its packet headers and Link State Advertisements (LSAs) to communicate specific information between routers. The OSPF bit types are significant because they play a critical role in the operation, efficiency, and flexibility of the OSPF routing protocol. OSPF bit types are fundamental to how OSPF operates, ensuring that the protocol can function effectively in diverse and complex network environments. They help in managing routing information, reducing unnecessary traffic, and ensuring the stability and efficiency of the network.
OSPF 在其数据包报头和链路状态通告(LSA)中使用各种类型的位在路由器之间传递特定信息。OSPF 位类型非常重要,因为它们在 OSPF 路由协议的运作、效率和灵活性中起着关键作用。OSPF 位类型是 OSPF 运行方式的基础,可确保协议能够在各种复杂的网络环境中有效运行。它们有助于管理路由信息、减少不必要的流量以及确保网络的稳定性和效率。

Here are the key OSPF bit types:
以下是关键的 OSPF 位类型:
E-bit
E 位
OSPF areas. can be configured as ‘Stubs’ and AS - external - LSAs will not flood into stub areas. This is represented with E - bit in the OSPF options field. To ensure configuration consistency of stub areas, all routers interfacing such area must have the E - bit cleared in their Hello packets.
OSPF 区域可以配置为 “存根区域”,并且 AS 外部 LSA 不会泛洪到存根区域,这在 OSPF 选项字段中用 E 位表示。为确保存根区域的配置一致性,与该区域接口的所有路由器必须在其 Hello 数据包中将 E 位清零。
M-bit
M 位
Each router’s database description contains an indication that there are more packets to flow using an M - bit. The M - bit is set to the off state when the database exchange process is over.
每个路由器数据库说明都包含一个指示,表明使用 M 位表示是否还有更多数据包要传输。当数据库交换过程结束时,M 位设置为关闭状态。
I-bit and MS-bit
I 位和 MS 位
The initialize (I), more (M) and Master (MS) bits in the options field and the DD sequence number container in the last database description packet arrived from the neighbour are used to determine if the next database description packet received from the neighbour is unique or duplicate.
选项字段中的初始化(I)、更多(M)和主(MS)位以及从邻居到达的最后一个数据库描述数据包中的 DD 序列号容器用于确定从邻居接收的下一个数据库描述数据包是唯一的还是重复的。
B-bit
B 位
B - bit is set whenever the router is actively attached to two or more areas, even if it is not attached to the OSPF backbone area.
每当路由器主动连接到两个或多个区域时,即使它未连接到 OSPF 骨干区域,也会设置 B 位。
V-bit
V 位
In router - LSA, the V - bit is set only if the router is the endpoint of one or more fully adjacent virtual links having Area A as their transit area. The V - bit setting enables other routers in Area A to discover if the area supports transit traffic.
在 router - LSA 中,仅当路由器是一个或多个全相邻的虚拟链路的端点,且区域 A 作为其中转区域时,才设置 V 位。V 位设置使 A 区域中的其他路由器能够发现该区域是否支持中转流量。
R-bit
R 位
Allows for multi - homed hosts to participate in the routing protocol.
允许多归属主机参与路由协议。
V6-bit
V6 位
Specializes the R - bit.
是 R 位的特殊化。
MC-bit
MC 位
Describes whether IP multicast datagrams are forwarded as per specifications.
描述 IP 组播数据报是否按照规范进行转发。
N/P-bit
N/P 位
Describes the handling of type - 7 LSAs.
描述类型 7 LSA 的处理方式。
EA-bit
EA 位
Describes the router’s willingness to forward/receive external - attributes - LSAs.
描述路由器转发 / 接收外部属性 LSA 的意愿。
DC-bit
DC 位
Describes the router’s handling of demand circuits.
描述路由器对按需电路的处理。
DN-bit
DN 位
Is used to prevent loops and it is located in the LSA header in MPLS VPN environments when OSPF is used as the PE - CE protocol.
用于防止环路,当 OSPF 用作 PE - CE 协议时,它位于 MPLS VPN 环境中的 LSA 报头中。
N-bit
N 位
Is used in hello packets. by OSPF NSSA routers.
由 OSPF NSSA 路由器在 hello 数据包中使用。
P-bit
P 位
Is used in the NSSA external header. It allows an ASBR to signal that the ABR router between (0, NSSA area) should translate LSA type 7 to LSA type 5 to be sent to the OSPF backbone area.
用于 NSSA 外部标头。它允许 ASBR 发出信号指示(0,NSSA 区域)之间的 ABR 路由器应将 LSA 类型 7 转换为 LSA 类型 5,以发送到 OSPF 骨干区域。
Check the summarized table below:
查看下面的汇总表:

| S.No. | OSPF BIT Type | Description |
|---|---|---|
| 1 | E-bit | The OSPF area can be configured as a “Stub” area. AS external LSAs (Link State Advertisements) will not flood into the stub area, which is indicated by the E - bit in the OSPF option field. To ensure consistent stub area configuration, all routers connected to the area must clear the E - bit in their Hello packets. OSPF 区域可配置为 “Stub”(存根区域),AS 外部 LSA(链路状态通告)不会泛洪到存根区域,这在 OSPF 选项字段中由 E-bit 表示。为确保存根区域配置一致,连接该区域的所有路由器在其 Hello 包中必须将 E-bit 清零。 |
| 2 | M-bit | The database description of each router contains an indication, using the M - bit to represent whether there are more packets to be transmitted. When the database exchange process is complete, the M - bit is set to the off state. 每个路由器的数据库描述包含一个指示,即使用 M-bit 表示是否还有更多数据包要传输。数据库交换过程结束时,M-bit 被设置为关闭状态。 |
| 3 & 4 | I-bit and MS-bit | The Initialization (I), More (M), and Master (MS) bits in the option field, along with the DD sequence number container in the last database description packet received from the neighbor, are used to determine whether the next database description packet received from the neighbor is unique or a duplicate. 选项字段中的初始化(I)、更多(M)和主(MS)位,以及从邻居收到的最后一个数据库描述包中的 DD 序列号容器,用于确定从邻居接收到的下一个数据库描述包是唯一的还是重复的。 |
| 5 | B-bit | The B-bit is set as long as the router is actively connected to two or more areas, even if it is not connected to the OSPF backbone area. 只要路由器主动连接到两个或更多区域,即使它未连接到 OSPF 骨干区域,B-bit 也会被设置。 |
| 6 | V-bit | The V-bit is set in the router LSA only when the router is the endpoint of one or more fully adjacent virtual links with area A as the transit area. The setting of the V - bit enables other routers in area A to discover whether the area supports transit traffic. 仅当路由器是一个或多个以区域 A 为中转区域的全相邻虚拟链路的端点时,在路由器 LSA 中才会设置 V-bit。V-bit 的设置使区域 A 中的其他路由器能够发现该区域是否支持中转流量。 |
| 7 | R-bit | Allows a multi - homed host to participate in the routing protocol. 允许多归属主机参与路由协议。 |
| 8 | V6-bit | Specializes R-bit. It is a specialization of the R-bit. R-bit 的特殊化。 |
| 9 | MC-bit | Describes whether IP multicast datagrams are forwarded according to the specification. 描述 IP 组播数据报是否按照规范进行转发。 |
| 10 | N/P-bit | Describes the processing method of type 7 LSA. 描述类型 7 LSA 的处理方式。 |
| 11 | EA-bit | Describes the router’s willingness to forward/receive external - attributes - LSAs. 描述路由器转发 / 接收外部属性 LSA 的意愿。 |
| 12 | DC-bit | Describes the router’s handling of demand circuits. 描述路由器对按需电路的处理。 |
| 13 | DN-bit | Is used to prevent loops. In an MPLS VPN environment where OSPF is used as the PE - CE protocol, it is located in the LSA header. 用于防止环路,在使用 OSPF 作为 PE-CE 协议的 MPLS VPN 环境中,它位于 LSA 头部。 |
| 14 | N-bit | Used by OSPF NSSA (Not-So-Stubby Area) routers in Hello packets. OSPF NSSA(非纯末梢区域)路由器在 Hello 包中使用。 |
| 15 | P-bit | Used for the NSSA external header. It allows an ASBR (Autonomous System Boundary Router) to signal an ABR (Area Border Router) between (0, NSSA area) that the ABR should convert a type 7 LSA to a type 5 LSA and send it to the OSPF backbone area. 用于 NSSA 外部头部。它允许 ASBR(自治系统边界路由器)向(0,NSSA 区域)之间的 ABR(区域边界路由器)发出信号指示,指示 ABR 应将类型 7 LSA 转换为类型 5 LSA 并发送到 OSPF 骨干区域。 |
OSPF LSA Types: The Ultimate Guide
OSPF LSA 类型:终极指南
Rashmi Bhardwaj

OSPF LSA Types –
OSPF LSA 类型 –
OSPF uses LSAs or Link state Advertisements to share information of each network and populate the LSDB (Link State Database). The LSAs are used by routers to exchange topology information. An LSA contains routing and topology information that describe a part of an OSPF network. Routers exchange LSAs and learn the complete topology of the network until all routers have the exact same topology database. Infact, OSPF sends updates (LSAs) when there is a change to one of its links. LSAs are additionally refreshed every 30 minutes.
OSPF 使用 LSA 或链路状态通告来共享每个网络的信息并填充 LSDB(链路状态数据库)。路由器使用 LSA 来交换拓扑信息。LSA 包含描述 OSPF 网络一部分的路由和拓扑信息。路由器交换 LSA 并了解网络的完整拓扑,直到所有路由器都具有完全相同的拓扑数据库。事实上,OSPF 会在其其中一个链路发生更改时发送更新 (LSA)。LSA 每 30 分钟刷新一次。
All OSPF LSA Types are mentioned in below table –
下表中提到了所有 OSPF LSA 类型 –
| Types | Description |
|---|---|
| LSA Type 1 | Router LSA |
| LSA Type 2 | Network LSA |
| LSA Type 3 or 4 | Summary LSA & ASBR LSA |
| LSA Type 5 | Autonomous System External LSA |
| LSA Type 6 | Multicast OSPF LSA Type |
| LSA Type 7 | Defined for Not-So-Stubby-Areas |
| LSA Type 8 | External Attribute LSA for BGP |
| LSA Type 9,10,11 | Opaque LSA |
LSA Type 1: Router LSA
LSA 类型 1:路由器 LSA
- This LSA type is flooded by every router within an area
此 LSA 类型由区域内的每台路由器泛洪 - The LSA consists of information about directly connected links
LSA 包含有关直接连接链路的信息 - It is identified by the Router ID. or the originating router
它由路由器 ID 或始发路由器标识 - It floods within an area and the LSA Type 1 does not cross the ABR.
它会在一个区域内泛洪,并且 LSA 类型 1 不会穿过 ABR。 - We see this as “O” routes in the routing table
我们在路由表中将其视为 “O” 路由 - LSA 1 – O, Router LSA contains all Link IDs – network, generated by every router and is local to the area.
LSA 1 – O,路由器 LSA 包含所有链路 ID – 网络,由每个路由器生成,并且是该区域的本地。 - This LSA does not cross ABR.
此 LSA 不跨越 ABR。

LSA Type 2: Network LSA
LSA 类型 2:网络 LSA
- Generated by the DR Router on the broadcast network
由广播网络上的 DR 路由器生成 - It includes the network ID, subnet mask and also the list of attached routers in the transit
它包括网络 ID、子网掩码以及传输中连接的路由器列表 - In OSPF we can have one Network LSA or Type 2 LSA for each transit broadcast of NBMA Network.
在 OSPF 中,我们可以为 NBMA 网络的每个中转广播提供一个网络 LSA 或第 2 类 LSA - This LSA also can be flooded only within the area and cannot cross the ABR
此 LSA 也只能在区域内泛洪,不能穿过 ABR - We see this as “O” routes in the routing table
我们在路由表中将其视为 “O” 路由 - LSA 2 – O, Network LSA contains all routers attached to the segment, generated by DR and is local to the area
LSA 2 — O,网络 LSA 包含连接到网段的所有路由器,由 DR 生成,并且是该区域的本地路由器

LSA Type 3: Summary LSA
LSA 类型 3:摘要 LSA
- The Type 3 LSA is used to share the network information with other areas. Inter-area ( IA)
Type 3 LSA 用于与其他区域共享网络信息。区域间 (IA) - These LSAs are advertised by the ABR Router
这些 LSA 由 ABR 路由器通告 - These LSA are represented in the routing table as “OIA” routes
这些 LSA 在路由表中表示为“OIA”路由 - To flood the information through the Autonomous System, they are regenerated by the ABRs following subsequently
为了通过自治系统泛洪信息,它们随后由 ABR 重新生成 - LSA 3 – O IA, Network Summary LSA describes network from another area, generated by ABR and is propagated between areas
LSA 3 – O IA,网络摘要 LSA 描述来自另一个区域的网络,由 ABR 生成并在区域之间传播 - It contains network ID and subnet mask
它包含网络 ID 和子网掩码

LSA Type 4: Summary ASBR LSA
LSA 类型 4:摘要 ASBR LSA
- This LSA type is also known as summary LSA is used to advertise about the ASBR to other areas in the same autonomous system.
此 LSA 类型也称为摘要 LSA,用于向同一自治系统中的其他区域通告 ASBR。 - It is generated by the ABR of the originating area.
它由原始区域的 ABR 生成。 - These type of LSAs are flooded throughout the Autonomous System
这些类型的 LSA 在整个自治系统中泛洪 - These LSA will contain the Router ID of the ASBR only
这些 LSA 将仅包含 ASBR 的路由器 ID - LSA 4 – O IA, Summary ASB Link States, generated by the ABR and is propagated between areas
LSA 4 - O IA,摘要 ASB 链路状态,由 ABR 生成并在区域之间传播

LSA Type 5: External LSA
LSA 类型 5:外部 LSA
- These are advertised by the ASBR only and also owned by the ASBR
这些仅由 ASBR 公布,也归 ASBR 所有 - These LSAs are used to advertise networks from other Autonomous systems
这些 LSA 用于通告来自其他自治系统的网络 - These LSAs are flooded throughout the entire Autonomous System
这些 LSA 在整个自治系统中泛洪 - The advertising router ID is not changed throughout the AS when it is propagating.
广告路由器 ID 在传播时不会在整个 AS 中更改。 - An LSA Type 4 is used to find an ASBR
LSA 类型 4 用于查找 ASBR - Routes are not summarized by default
默认情况下,不汇总路由 - LSA 5 – O E1, O E2, External Link States, generated by ASBR and is propagated
LSA 5 – O E1、O E2、外部链路状态,由 ASBR 生成并传播

LSA Type 6: Multicast OSPF LSA
LSA 类型 6:组播 OSPF LSA
- These are used when routing using multicast (the MODPF Routing protocol)
这些在使用多播(MODPF 路由协议)进行路由时使用 - These LSAs are not supported by Cisco Routers
Cisco 路由器不支持这些 LSA
LSA Type 7: External LSA
LSA 类型 7:外部 LSA
- As LSA Type 5 is not allowed in NSSA Areas, a solution to that was thought as LSA 7.
由于 NSSA 区域不允许使用 LSA 类型 5,因此该解决方案被认为是 LSA 7。 - It carries similar information as a Type 5 LSA but this is not blocked in the NSSA Area.
它携带与 5 类 LSA 类似的信息,但这在 NSSA 区域中未被阻止。 - When it reached the ABR it is translated back to Type 5 LSA and flooded into other areas.
当它到达 ABR 时,它被转换回 5 型 LSA 并泛洪到其他区域。 - LSA 7 – O N1, O N2, NSSA External Link States, generated by ASBR into NSSA area and is propagated into area 0 as E1 or E2
LSA 7 – O N1、O N2、NSSA 外部链路状态,由 ASBR 生成到 NSSA 区域,并作为 E1 或 E2 传播到区域 0

LSA Type 8: External attributes LSA for Border Gateway Protocol (BGP)
LSA 类型 8:边界网关协议 (BGP) 的外部属性 LSA
This LSA Types is used to work with BGP.
此 LSA 类型用于与 BGP 配合使用。
Note – Below list of LSA9, 10 and 11 are called Opaque LSAs. Further detail on these LSA types is shared below –
注意 – 以下 LSA9、10 和 11 列表称为不透明 LSA。有关这些 LSA 类型的更多详细信息,请参见下文 –
LSA Type 9: Opaque LSA
LSA 类型 9:不透明 LSA
This LSA types is Link-state in scope and is not flooded beyond the local network.
此 LSA 类型在范围内是链路状态,不会泛洪到本地网络之外。
LSA Type 10: Opaque LSA
LSA 类型 10:不透明 LSA
The scope of this type of LSA is area-local. This LSA is not flooded beyond the borders of their associated area.
此类 LSA 的范围是区域本地的。此 LSA 不会在其关联区域的边界之外泛洪。
LSA Type 11: Opaque LSA
LSA 类型 11:不透明 LSA
This LSA is flooded throughout the Autonomous System (AS). Somewhat is can be related to Type-5 LSA is terms of flooding scope.
此 LSA 在整个自治系统 (AS) 中泛洪。在某种程度上可能与 5 型 LSA 有关,是泛洪范围的术语。
There are 3 key features of Type11 LSAs –
Type11 LSA 有 3 个关键功能 –
- These are flooded throughout the transit areas
这些在整个过境区域都被泛洪了 - Not flooded into stub areas from the backbone
未从主干泛洪到存根区域 - Not originated by routers having connected stub areas
不是由具有连接的存根区域的路由器发起的
via:
-
15 OSPF BIT Types Explained - IP With Ease
https://ipwithease.com/15-ospf-bit-types-explained/ -
Uptimate Guide on OSPF LSA Types
https://ipwithease.com/ospf-lsa-types/
相关文章:
OSPF BIT 类型说明
注:本文为 “OSPF BIT 类型 | LSA 类型 ” 相关文章合辑。 机翻,未校。 15 OSPF BIT Types Explained 15 种 OSPF BIT 类型说明 Rashmi Bhardwaj Distribution of routing information within a single autonomous system in larger networks is per…...
java excel xlsx 增加数据验证
隐藏表下拉框 // 创建隐藏工作表存储下拉框数据String hiddenSheetName "HiddenSheet"System.currentTimeMillis();Sheet hiddenSheet workbook.createSheet(hiddenSheetName);//设置隐藏sheetworkbook.setSheetHidden(workbook.getSheetIndex(hiddenSheetName), …...
React + TypeScript 数据血缘分析实战
React TypeScript 数据血缘分析实战 目录 技术选型与架构设计核心概念解析基础场景实现 场景一:visx库基础血缘图实现场景二:React-Lineage-DAG企业级方案场景三:动态数据源与复杂交互 TypeScript类型系统深度优化性能优化与工程化实践开源…...
魔搭 ModelScope 模型下载
wget https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.28.03_linux.run sudo sh cuda_12.6.0_560.28.03_linux.run# pip -V pip 24.3.1 # pip3 -V pip 24.3.1设置pip镜像源 # pip config set global.index-url https://mirrors.…...
WorldQuant Brain的专属语言——Fast Expression
使用brain需要的编程语言 在使用BRAIN平台时往往不需要事先有编码背景,因此小白也能很快对其上手,但有经验的程序员来讲,该平台暂时没有禁止API通信低强度进行时的程序化访问(但是非常不好意思😣怎么访问我没找到&…...
在低功耗MCU上实现人工智能和机器学习
作者:Silicon Labs 人工智能(AI)和机器学习(ML)技术不仅正在快速发展,还逐渐被创新性地应用于低功耗的微控制器(MCU)中,从而实现边缘AI/ML解决方案。这些MCU是许多嵌入式…...
MSSQL2022的一个错误:未在本地计算机上注册“Microsoft.ACE.OLEDB.16.0”提供程序
MSSQL2022导入Excel的一个错误:未在本地计算机上注册“Microsoft.ACE.OLEDB.16.0”提供程序 一、导入情况二、问题发现三、问题解决 最近在安装新版SQLServer SSMS 2022后,每次导入Excel都会出现错误提示:未在本地计算机上注册“Microsoft.…...
(2.26 “详细分析示例“ 暴力+位运算 最长优雅子数组)leetcode 2401
a&b0说明a和b的每一位都是一个0和一个1 不存在两个均为1的位次 a|0a 0与任何数|都等于它本身 (mask)的作用: 担心两数的1在用一位导致mask覆盖了? 答:出现这种情况说明mask与nums j后就直接break 由:…...
【洛谷贪心算法题】P1094纪念品分组
该题运用贪心算法,核心思想是在每次分组时,尽可能让价格较小和较大的纪念品组合在一起,以达到最少分组的目的。 【算法思路】 输入处理:首先读取纪念品的数量n和价格上限w,然后依次读取每件纪念品的价格,…...
基于coze+微信小程序的ai对话
界面介绍: 代码:(替换你的coze的配置) <template><view class"container"><!-- 高斯模糊背景 --><view class"animated-bg"><view class"gradient-blob"></view…...
[Linux]项目自动化构建工具-make/Makefile
项目自动化构建工具-make/Makefile make与Makefile单文件Makefile多文件Makefile 缓冲区 首先理清多文件之间的关系: 这里为什么没有包含test.h头文件?因为在当前工作目录下,因此不需要包含test.h,如果把test.h移到上一级目录&…...
Dashboard-frps
通过浏览器查看 frp的状态以及代理统计信息展示。 注:Dashboard 尚未针对大量的 proxy 数据展示做优化,如果出现 Dashboard 访问较慢的情况,请不要启用此功能。 需要在 frps.ini中指定 dashboard服务使用的端口,即可开启此功能&…...
android 新增native binder service 方式(三)
书接上回,继续第三种方式,是手动生成 service binder 的方法,项目结构 1,编译aidl aidl 文件保持不变,如何生成Bn和Bp 文件呢。 aidl -I ./libserviceaidl/aidl -h ./ -o ./ --langcpp libserviceaidl/aidl/com/test/IService.a…...
(IDE接入DeepSeek)简单了解DeepSeek接入辅助开发与本地部署建议
重点:IDE接入DeepSeek是否收费 收费! 本文章主要是为了给小白避雷,目前很多文章告诉大家怎么接入DeepSeek,但是并未告知大家是否收费。如果是想白嫖的,就可以不用去接入了。 一、引言 最近爆火的AI人工智能工具DeepSe…...
seasms v9 注入漏洞 + order by注入+information_schema解决方法
目录 一、当注入时,information_schema被禁用的解决方法 1.通过sys库可以获取到表名和库名 2.通过无列名注入join获取列名 二、seasms v9 注入漏洞 三、order by注入 一、当注入时,information_schema被禁用的解决方法 information_schema数据库是My…...
【实战 ES】实战 Elasticsearch:快速上手与深度实践-1.3.1单节点安装(Docker与手动部署)
👉 点击关注不迷路 👉 点击关注不迷路 👉 点击关注不迷路 文章大纲 10分钟快速部署Elasticsearch单节点环境1. 系统环境要求1.1 硬件配置推荐1.2 软件依赖 2. Docker部署方案2.1 部署流程2.2 参数说明2.3 性能优化建议 3. 手动部署方案3.1 安…...
如何使用useEffect模拟组件的生命周期?
什么是 useEffect? useEffect 是 React 提供的一个 Hook,用于处理副作用(side effects)。它允许你在函数组件中执行一些操作,这些操作通常会影响组件的渲染,比如数据获取、订阅、DOM 操作等。通过 useEffe…...
【DeepSeek】私有化本地部署图文(Win+Mac)
目录 一、DeepSeek本地部署【Windows】 1、安装Ollama 2、配置环境变量 3、下载模型 4、使用示例 a、直接访问 b、chatbox网页访问 二、DeepSeek本地部署【Mac】 1、安装Ollama 2、配置环境变量 3、下载模型 4、使用示例 5、删除已下载的模型 三、DeepSeek其他 …...
Python 入门教程(2)搭建环境 | 2.3、VSCode配置Python开发环境
文章目录 一、VSCode配置Python开发环境1、软件安装2、安装Python插件3、配置Python环境4、包管理5、调试程序 前言 Visual Studio Code(简称VSCode)以其强大的功能和灵活的扩展性,成为了许多开发者的首选。本文将详细介绍如何在VSCode中配置…...
Wireshark详解
Wireshark使用详解 1.Wireshark 简介2.下载与安装1. 下载地址2. 安装步骤(以 Windows 为例) 3. 界面与核心功能1. 主界面布局2. 常用菜单功能 4. 过滤功能详解1. 过滤类型2. 常用过滤命令 5. 过滤命令与网络结构对应6. 使用注意事项7. 案例分析 TCP 三次…...
基于PGA2311的树莓派Hi-Fi模拟音量控制器设计与实现
1. 项目概述:为树莓派DAC打造的高品质模拟音量控制器玩过树莓派音频播放器的朋友都知道,用上像PCM1794A这类高性能DAC芯片后,音质确实能上一个台阶,但有个不大不小的麻烦:这类芯片本身不带音量控制。软件调音量&#x…...
MeloTTS实战指南:解决多语言TTS部署中的核心挑战
MeloTTS实战指南:解决多语言TTS部署中的核心挑战 【免费下载链接】MeloTTS High-quality multi-lingual text-to-speech library by MyShell.ai. Support English, Spanish, French, Chinese, Japanese and Korean. 项目地址: https://gitcode.com/GitHub_Trendin…...
观察Token消耗明细,Taotoken用量看板如何帮助控制预算
🚀 告别海外账号与网络限制!稳定直连全球优质大模型,限时半价接入中。 👉 点击领取海量免费额度 观察Token消耗明细,Taotoken用量看板如何帮助控制预算 对于个人开发者或项目管理者而言,在使用大模型API时…...
Unity新手避坑指南:NavMesh烘焙参数(Agent Radius/Height)到底怎么设?附场景实测
Unity导航系统深度解析:Agent参数设置与场景适配实战在Unity游戏开发中,导航系统(Navigation System)是实现角色智能移动的核心模块。对于刚接触Unity导航系统的开发者来说,Agent Radius(代理半径)和Agent Height(代理身高)这两个参数的设置往…...
告别Appium!用Python+UIAutomator2搞定Android自动化测试(附完整环境搭建与实战代码)
PythonUIAutomator2:Android自动化测试的高效实践指南 在移动应用测试领域,效率与稳定性始终是工程师们追求的核心目标。传统方案如Appium虽然功能全面,但在执行速度和资源消耗方面往往难以满足高频测试需求。本文将带您探索基于Python和UIA…...
四大桌面云品牌评测:从安全、体验到性价比
桌面云不再是大型企业的专属,它已成为各行各业实现数据安全、混合办公和IT降本增效的“标准配置”。经过对市场主流方案的全面评估,我们认为,深信服(Sangfor)aDesk桌面云因其在安全内生化、传输协议自研化、运维管理智…...
MySQL全局ID生成实战:从自增主键到自定义Sequence的平滑升级方案与避坑指南
MySQL全局ID生成实战:从自增主键到自定义Sequence的平滑升级方案与避坑指南 当电商平台的日订单量突破百万时,技术团队突然发现系统开始频繁出现"Duplicate entry"错误——那些原本可靠的自增主键,在分库分表的环境下变成了数据一致…...
机器学习预测关税冲击下的股市波动:随机森林、SVR、kNN与线性回归实战对比
1. 项目概述与核心问题拆解做量化研究的朋友们,尤其是关注宏观事件对市场冲击的,应该都对“黑天鹅”事件不陌生。政策变动,特别是像关税这种直接影响国际贸易成本和公司利润的宏观变量,往往会在短期内引发市场剧烈波动。传统的做法…...
Unity VFX Graph实战:从Compute Shader依赖看GPU粒子特效的性能与平台适配(以HDRP项目为例)
Unity VFX Graph深度解析:GPU粒子特效的性能优化与跨平台实战指南在游戏开发领域,粒子特效一直是营造沉浸感的关键要素。当传统CPU驱动的粒子系统遇到性能瓶颈时,Unity的Visual Effect Graph(VFX Graph)凭借其GPU加速能…...
MySQL 分区表实战:大表治理的利器与陷阱
开场白 分区表这个东西,我之前一直觉得就是个语法糖,直到有一次运维一张 2 亿行的日志表,查询慢到飞起,索引也建不动了,才认真研究分区表。结果发现分区表确实好用,但坑也不少——分区键选错了、分区裁剪没…...
