当前位置: 首页 > news >正文

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 地址。

15 OSPF BIT Types Explained 1

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:
查看下面的汇总表:

15 OSPF BIT Types Explained table

S.No.OSPF BIT TypeDescription
1E-bitThe 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 清零。
2M-bitThe 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 & 4I-bit and MS-bitThe 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 序列号容器,用于确定从邻居接收到的下一个数据库描述包是唯一的还是重复的。
5B-bitThe 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 也会被设置。
6V-bitThe 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 中的其他路由器能够发现该区域是否支持中转流量。
7R-bitAllows a multi - homed host to participate in the routing protocol.
允许多归属主机参与路由协议。
8V6-bitSpecializes R-bit. It is a specialization of the R-bit.
R-bit 的特殊化。
9MC-bitDescribes whether IP multicast datagrams are forwarded according to the specification.
描述 IP 组播数据报是否按照规范进行转发。
10N/P-bitDescribes the processing method of type 7 LSA.
描述类型 7 LSA 的处理方式。
11EA-bitDescribes the router’s willingness to forward/receive external - attributes - LSAs.
描述路由器转发 / 接收外部属性 LSA 的意愿。
12DC-bitDescribes the router’s handling of demand circuits.
描述路由器对按需电路的处理。
13DN-bitIs 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 头部。
14N-bitUsed by OSPF NSSA (Not-So-Stubby Area) routers in Hello packets.
OSPF NSSA(非纯末梢区域)路由器在 Hello 包中使用。
15P-bitUsed 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 类型 –

TypesDescription
LSA Type 1Router LSA
LSA Type 2Network LSA
LSA Type 3 or 4Summary LSA & ASBR LSA
LSA Type 5Autonomous System External LSA
LSA Type 6Multicast OSPF LSA Type
LSA Type 7Defined for Not-So-Stubby-Areas
LSA Type 8External Attribute LSA for BGP
LSA Type 9,10,11Opaque 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 和子网掩码

OSPF LSA TYPE3

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 生成并在区域之间传播

OSPF LSA TYPE4

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 生成并传播

OSPF LSA TYPE5

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

OSPF LSA TYPE7

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对话

界面介绍&#xff1a; 代码&#xff1a;&#xff08;替换你的coze的配置&#xff09; <template><view class"container"><!-- 高斯模糊背景 --><view class"animated-bg"><view class"gradient-blob"></view…...

[Linux]项目自动化构建工具-make/Makefile

项目自动化构建工具-make/Makefile make与Makefile单文件Makefile多文件Makefile 缓冲区 首先理清多文件之间的关系&#xff1a; 这里为什么没有包含test.h头文件&#xff1f;因为在当前工作目录下&#xff0c;因此不需要包含test.h&#xff0c;如果把test.h移到上一级目录&…...

Dashboard-frps

通过浏览器查看 frp的状态以及代理统计信息展示。 注&#xff1a;Dashboard 尚未针对大量的 proxy 数据展示做优化&#xff0c;如果出现 Dashboard 访问较慢的情况&#xff0c;请不要启用此功能。 需要在 frps.ini中指定 dashboard服务使用的端口&#xff0c;即可开启此功能&…...

android 新增native binder service 方式(三)

书接上回&#xff0c;继续第三种方式&#xff0c;是手动生成 service binder 的方法,项目结构 1&#xff0c;编译aidl aidl 文件保持不变&#xff0c;如何生成Bn和Bp 文件呢。 aidl -I ./libserviceaidl/aidl -h ./ -o ./ --langcpp libserviceaidl/aidl/com/test/IService.a…...

(IDE接入DeepSeek)简单了解DeepSeek接入辅助开发与本地部署建议

重点&#xff1a;IDE接入DeepSeek是否收费 收费&#xff01; 本文章主要是为了给小白避雷&#xff0c;目前很多文章告诉大家怎么接入DeepSeek&#xff0c;但是并未告知大家是否收费。如果是想白嫖的&#xff0c;就可以不用去接入了。 一、引言 最近爆火的AI人工智能工具DeepSe…...

seasms v9 注入漏洞 + order by注入+​information_schema​解决方法

目录 一、当注入时&#xff0c;information_schema被禁用的解决方法 1.通过sys库可以获取到表名和库名 2.通过无列名注入join获取列名 二、seasms v9 注入漏洞 三、order by注入 一、当注入时&#xff0c;information_schema被禁用的解决方法 information_schema数据库是My…...

【实战 ES】实战 Elasticsearch:快速上手与深度实践-1.3.1单节点安装(Docker与手动部署)

&#x1f449; 点击关注不迷路 &#x1f449; 点击关注不迷路 &#x1f449; 点击关注不迷路 文章大纲 10分钟快速部署Elasticsearch单节点环境1. 系统环境要求1.1 硬件配置推荐1.2 软件依赖 2. Docker部署方案2.1 部署流程2.2 参数说明2.3 性能优化建议 3. 手动部署方案3.1 安…...

如何使用useEffect模拟组件的生命周期?

什么是 useEffect&#xff1f; useEffect 是 React 提供的一个 Hook&#xff0c;用于处理副作用&#xff08;side effects&#xff09;。它允许你在函数组件中执行一些操作&#xff0c;这些操作通常会影响组件的渲染&#xff0c;比如数据获取、订阅、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&#xff08;简称VSCode&#xff09;以其强大的功能和灵活的扩展性&#xff0c;成为了许多开发者的首选。本文将详细介绍如何在VSCode中配置…...

Wireshark详解

Wireshark使用详解 1.Wireshark 简介2.下载与安装1. 下载地址2. 安装步骤&#xff08;以 Windows 为例&#xff09; 3. 界面与核心功能1. 主界面布局2. 常用菜单功能 4. 过滤功能详解1. 过滤类型2. 常用过滤命令 5. 过滤命令与网络结构对应6. 使用注意事项7. 案例分析 TCP 三次…...

SpringBoot-17-MyBatis动态SQL标签之常用标签

文章目录 1 代码1.1 实体User.java1.2 接口UserMapper.java1.3 映射UserMapper.xml1.3.1 标签if1.3.2 标签if和where1.3.3 标签choose和when和otherwise1.4 UserController.java2 常用动态SQL标签2.1 标签set2.1.1 UserMapper.java2.1.2 UserMapper.xml2.1.3 UserController.ja…...

【Web 进阶篇】优雅的接口设计:统一响应、全局异常处理与参数校验

系列回顾&#xff1a; 在上一篇中&#xff0c;我们成功地为应用集成了数据库&#xff0c;并使用 Spring Data JPA 实现了基本的 CRUD API。我们的应用现在能“记忆”数据了&#xff01;但是&#xff0c;如果你仔细审视那些 API&#xff0c;会发现它们还很“粗糙”&#xff1a;有…...

k8s业务程序联调工具-KtConnect

概述 原理 工具作用是建立了一个从本地到集群的单向VPN&#xff0c;根据VPN原理&#xff0c;打通两个内网必然需要借助一个公共中继节点&#xff0c;ktconnect工具巧妙的利用k8s原生的portforward能力&#xff0c;简化了建立连接的过程&#xff0c;apiserver间接起到了中继节…...

初学 pytest 记录

安装 pip install pytest用例可以是函数也可以是类中的方法 def test_func():print()class TestAdd: # def __init__(self): 在 pytest 中不可以使用__init__方法 # self.cc 12345 pytest.mark.api def test_str(self):res add(1, 2)assert res 12def test_int(self):r…...

【LeetCode】3309. 连接二进制表示可形成的最大数值(递归|回溯|位运算)

LeetCode 3309. 连接二进制表示可形成的最大数值&#xff08;中等&#xff09; 题目描述解题思路Java代码 题目描述 题目链接&#xff1a;LeetCode 3309. 连接二进制表示可形成的最大数值&#xff08;中等&#xff09; 给你一个长度为 3 的整数数组 nums。 现以某种顺序 连接…...

系统掌握PyTorch:图解张量、Autograd、DataLoader、nn.Module与实战模型

本文较长&#xff0c;建议点赞收藏&#xff0c;以免遗失。更多AI大模型应用开发学习视频及资料&#xff0c;尽在聚客AI学院。 本文通过代码驱动的方式&#xff0c;系统讲解PyTorch核心概念和实战技巧&#xff0c;涵盖张量操作、自动微分、数据加载、模型构建和训练全流程&#…...

32单片机——基本定时器

STM32F103有众多的定时器&#xff0c;其中包括2个基本定时器&#xff08;TIM6和TIM7&#xff09;、4个通用定时器&#xff08;TIM2~TIM5&#xff09;、2个高级控制定时器&#xff08;TIM1和TIM8&#xff09;&#xff0c;这些定时器彼此完全独立&#xff0c;不共享任何资源 1、定…...

热门Chrome扩展程序存在明文传输风险,用户隐私安全受威胁

赛门铁克威胁猎手团队最新报告披露&#xff0c;数款拥有数百万活跃用户的Chrome扩展程序正在通过未加密的HTTP连接静默泄露用户敏感数据&#xff0c;严重威胁用户隐私安全。 知名扩展程序存在明文传输风险 尽管宣称提供安全浏览、数据分析或便捷界面等功能&#xff0c;但SEMR…...

算法250609 高精度

加法 #include<stdio.h> #include<iostream> #include<string.h> #include<math.h> #include<algorithm> using namespace std; char input1[205]; char input2[205]; int main(){while(scanf("%s%s",input1,input2)!EOF){int a[205]…...

初探用uniapp写微信小程序遇到的问题及解决(vue3+ts)

零、关于开发思路 (一)拿到工作任务,先理清楚需求 1.逻辑部分 不放过原型里说的每一句话,有疑惑的部分该问产品/测试/之前的开发就问 2.页面部分(含国际化) 整体看过需要开发页面的原型后,分类一下哪些组件/样式可以复用,直接提取出来使用 (时间充分的前提下,不…...