当前位置: 首页 > 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…...

C语言(3)—循环、数组、函数的详解

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 前言一、函数二、循环与数组 1.循环2.数组 总结 前言 提示:以下是本篇文章正文内容,下面案例可供参考 一、函数 在C语言中,函数…...

大唐杯——阶段二01

03 5G寻呼 UE(User Equipment) UE是用户设备(User Equipment)的缩写,指的是移动通信网络中的终端设备,例如手机、平板电脑、物联网传感器等。 AMF(Access and Mobility Management Function&a…...

清华大学Deepseek第六版AIGC发展研究3.0(共186页,附PDF下载)

人工智能生成内容(AIGC)正以前所未有的速度改变我们的生活。 2024年底,清华大学新闻与传播学院与人工智能学院联合发布了《AIGC发展研究3.0版》,这份报告系统梳理了AIGC技术的突破性进展、应用场景及社会影响,并展望了…...

【漫话机器学习系列】114.逻辑 Sigmoid 函数

逻辑 Sigmoid 函数详解 1. 引言 逻辑回归(Logistic Regression)是机器学习中常用的分类算法,而 Sigmoid 函数 是逻辑回归的核心数学工具。Sigmoid 函数能够将任意实数映射到 (0,1) 之间,因此特别适用于概率估计。在这篇文章中&a…...

Cocos Creator3.8.6拖拽物体的几种方式

文章目录 前言一、第一种通过UILocation二、第二种通过UIDelta实现总结 前言 在游戏开发中,拖拽物体是一个非常常见的交互功能,无论是用于UI元素的拖动,还是场景中物体的移动,拖拽操作都能极大地提升用户体验。Cocos Creator 3.8…...

01_NLP基础之文本处理的基本方法

自然语言处理入门 自然语言处理(Natural Language Processing, 简称NLP)是计算机科学与语言学中关注于计算机与人类语言间转换的领域,主要目标是让机器能够理解和生成自然语言,这样人们可以通过语言与计算机进行更自然的互动。 …...

Minio搭建并在SpringBoot中使用完成用户头像的上传

Minio使用搭建并上传用户头像到服务器操作,学习笔记 Minio介绍 minio官网 MinIO是一个开源的分布式对象存储服务器,支持S3协议并且可以在多节点上实现数据的高可用和容错。它采用Go语言开发,拥有轻量级、高性能、易部署等特点,并且可以自由…...

深入解析 Kubernetes CRD:原理、特点与典型应用场景

深入解析 Kubernetes CRD:原理、特点与典型应用场景 一、CRD 的本质与原理 1.1 什么是 CRD? CRD(Custom Resource Definition) 是 Kubernetes 提供的核心扩展机制,允许用户自定义 API 资源类型。通过 CRD,开发者可以将业务逻辑抽象为 Kubernetes 原生资源模型,实现与…...

【新手入门】SQL注入之盲注

一、引言 在我们的注入语句被带入数据库查询但却什么都没有返回的情况我们该怎么办? 例如应用程序返回到一个"通用的"的页面,或者重定向一个通用页面(可能为网站首页)。这时,我们之前学习的SQL注入的办法就无法使用了。这种情况我们称之为无…...

功能丰富的自动化任务软件zTasker_2.1.0_绿色版_屏蔽强制更新闪退

🚀 zTasker 一键式效率倍增器使用指南 🙏 致谢 首先感谢开发者提供如此高效的工具! 软件本身功能强大,但部分机制需特别注意! 📖 软件概述 zTasker 是一款通过自动化脚本/任务流实现效率飞跃的生产力工…...

YOLOv11-ultralytics-8.3.67部分代码阅读笔记-model.py

model.py ultralytics\models\yolo\model.py 目录 model.py 1.所需的库和模块 2.class YOLO(Model): 3.class YOLOWorld(Model): 1.所需的库和模块 # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/licensefrom pathlib import Pathfrom ult…...

深入浅出 Go 语言:协程(Goroutine)详解

深入浅出 Go 语言:协程(Goroutine)详解 引言 Go 语言的协程(goroutine)是其并发模型的核心特性之一。协程允许你轻松地编写并发代码,而不需要复杂的线程管理和锁机制。通过协程,你可以同时执行多个任务,并…...

【深度学习】Hopfield网络:模拟联想记忆

Hopfield网络是一种经典的循环神经网络,由物理学家John Hopfield在1982年提出。它的核心功能是模拟联想记忆,类似于人类大脑通过部分信息回忆完整记忆的能力。以下是通俗易懂的解释: 1. 核心思想 想象你看到一张模糊的老照片,虽然…...

为什么深度学习选择Tensor而非NumPy数组?核心优势深度解析

简短总结: 支持 GPU 加速:Tensor 提供对 GPU 的原生支持,能够有效加速计算,而 NumPy 则通常只能在 CPU 上运行。支持自动求导:深度学习模型的训练依赖于参数的优化,而 Tensor 提供了自动求导功能&#xff…...

MongoDB—(一主、一从、一仲裁)副本集搭建

MongoDB集群介绍: MongoDB 副本集是由多个MongoDB实例组成的集群,其中包含一个主节点(Primary)和多个从节点(Secondary),用于提供数据冗余和高可用性。以下是搭建 MongoDB 副本集的详细步骤&am…...

【Leetcode 每日一题】132. 分割回文串 II

问题背景 给你一个字符串 s s s,请你将 s s s 分割成一些子串,使每个子串都是回文串。 返回符合要求的 最少分割次数 。 数据约束 1 ≤ s . l e n g t h ≤ 2000 1 \le s.length \le 2000 1≤s.length≤2000 s s s 仅由小写英文字母组成 解题过程 …...

面试常问的压力测试问题

性能测试作为软件开发中的关键环节,确保系统在高负载下仍能高效运行。压力测试作为性能测试的重要类型,旨在通过施加超出正常负载的压力,观察系统在极端条件下的表现。面试中,相关问题常被问及,包括定义、重要性、与负…...

信刻光盘安全隔离与信息交换系统让“数据摆渡”安全高效

随着数据传输、存储及信息技术的飞速发展,信息安全保护已成为重中之重。各安全领域对跨网数据交互的需求日益迫切,数据传输的安全可靠性成为不可忽视的关键。为满足业务需求并遵守保密规范,针对于涉及重要秘密信息,需做到安全的物…...

MySQL InnoDB 引擎中的聚簇索引和非聚簇索引有什么区别?

在 MySQL 的 InnoDB 存储引擎中,聚簇索引(Clustered Index)和非聚簇索引(Non-Clustered Index)是两种重要的索引类型,它们在数据存储结构、性能特点和适用场景上存在显著区别。以下是对它们的详细对比和解释…...

微信小程序开发学习笔记

微信小程序开发学习笔记 一、基础结构项目结构配置文件(app.json) 二、常用组件视图组件表单组件导航组件 三、API 常用功能网络请求数据缓存用户信息支付功能 四、框架与工具框架开发者工具 五、开发流程六、最佳实践七、常见问题路由跳转:权…...

动态规划刷题

文章目录 动态规划三步问题题目解析代码 动态规划 1. 状态表示:dp[i],表示dp表中i下标位置的值 2. 状态转移方程:以i位置位置的状态,最近的一步来划分问题,比如可以将状态拆分成前状态来表示现状态,dp[i] …...

uniapp 系统学习,从入门到实战(七)—— 网络请求与数据交互

全篇大概 3600 字(含代码),建议阅读时间 25min 📚 目录 使用uni.request发起请求封装全局请求工具破解跨域难题总结 在跨平台应用开发中,网络请求是连接前端与后端服务的核心环节。UniApp 提供了 uni.request 方法处理网络请求,但…...

AI人工智能机器学习之聚类分析

1、概要 本篇学习AI人工智能机器学习之聚类分析,以KMeans、AgglomerativeClustering、DBSCAN为例,从代码层面讲述机器学习中的聚类分析。 2、聚类分析 - 简介 聚类分析是一种无监督学习的方法,用于将数据集中的样本划分为不同的组&#xff…...

安当全栈式PostgreSQL数据库安全解决方案:透明加密、动态凭据与勒索防护一体化实践

引言:数字化转型下的数据库安全挑战 随着PostgreSQL在企业核心业务中的广泛应用,其承载的敏感数据价值日益攀升。然而,近年来针对数据库的攻击事件频发,如SQL注入漏洞(CVE-2025-1094)、勒索病毒攻击、内部…...

进程的状态 ─── linux第11课

目录 ​编辑 补充知识: 1.并行和并发 分时操作系统(Time-Sharing Systems) 实时操作系统(Real-Time Systems) 进程的状态(操作系统层面) ​编辑 运行状态 阻塞状态 状态总结: 挂起状态 linux下的进程状态 补充知识: …...

DevOps原理和实现面试题及参考答案

解释 DevOps 的核心目标与文化价值观,如何理解 “CAMS” 模型? DevOps 的核心目标是打破开发(Development)和运维(Operations)之间的壁垒,通过自动化、协作和持续反馈,实现软件的快速、可靠交付,以更好地满足业务需求和客户期望。具体来说,DevOps 旨在缩短软件的交付…...

牛客刷题自留-深度学习

1、当在卷积神经网络中加入池化层(pooling layer)时,平移变换的不变性会被保留,是吗? 正常答案: C A 不知道 B 看情况 C 是 D 否 平移变换不变性的概念 平移变换不变性指的是当输入图像发生小范围的平移时,模型的输出结果不会发…...

网络空间安全(6)web应用程序技术

前言 Web应用程序技术是指用于开发和构建基于Web的应用程序的技术和工具,涵盖了前端开发、后端开发、数据库管理、安全性等多个方面的技术。 一、前端开发技术 HTML/CSS/JavaScript:HTML用于构建网页结构,CSS用于进行样式设计,Jav…...

kubernetes 初学命令

基础命令 kubectl 运维命令常用: #查看pod创建过程以及相关日志 kubectl describe pod pod-command -n dev #查看某个pod,以yaml格式展示结果 kubectl get pod nginx -o yaml #查看pod 详情 以及对应的集群IP地址 kubectl get pods -o wide 1. kubetc…...

Redis面试题

Redis 是一个高性能的开源键值对存储数据库,在面试中经常会被问到。以下是一些常见的 Redis 面试题: 基础概念 Redis 是什么 描述:Redis 是一个开源的、基于内存的数据结构存储系统,它可以用作数据库、缓存和消息中间件。支持多…...

提升系统效能:从流量控制到并发处理的全面解析

在当今快速发展的数字时代,无论是构建高效的网络服务、管理海量数据,还是优化系统的并发处理能力,都是技术开发者和架构师们面临的重大挑战。本文集旨在深入探讨几个关键技术领域,包括用于网络通信中的漏桶算法与令牌桶算法的原理…...

【计算机网络入门】初学计算机网络(四)

目录 1.信源、信宿、信号、信道 2.码元 2.1 码元与比特之间的关系 3.波特和比特 4.奈奎斯特定理 4.1 带宽和噪声的概念 5.香农定理 5.1信噪比 6.奈氏定理和香农定理的对比 1.信源、信宿、信号、信道 数据转换为信号从信源发送到信道上,再发送到信宿中。 …...

多元数据直观表示(R语言)

一、实验目的: 通过上机试验,掌握R语言实施数据预处理及简单统计分析中的一些基本运算技巧与分析方法,进一步加深对R语言简单统计分析与图形展示的理解。 数据: 链接: https://pan.baidu.com/s/1kMdUWXuGCfZC06lklO5iXA 提取码: …...

派可数据BI接入DeepSeek,开启智能数据分析新纪元

派可数据BI产品完成接入DeepSeek,此次接入标志着派可数据BI在智能数据分析领域迈出了重要一步,将为用户带来更智能、更高效、更便捷的数据分析体验。 派可数据BI作为国内领先的商业智能解决方案提供商,一直致力于为用户提供高效、稳定易扩展…...

Hive之正则表达式

Hive版本:hive-3.1.2 目录 一、Hive的正则表达式概述 1.1 字符集合 1.2 边界集合 1.3 量词(重复次数)集合 1.4 转义操作符 1.5 运算符优先级 二、Hive 正则表达式案例 2.1 like 2.2 rlike 2.3 regexp 2.4 regexp_replace正…...

【软路由】ImmortalWrt 编译指南:从入门到精通

对于喜欢折腾路由器,追求极致性能和定制化的玩家来说,OpenWrt 无疑是一个理想的选择。而在众多 OpenWrt 衍生版本中,ImmortalWrt 以其更活跃的社区、更激进的特性更新和对新硬件的支持而备受关注。 本文将带你深入了解 ImmortalWrt&#xff0…...

蓝桥杯备考:从记忆化搜索到动态规划

首先我们先来复习一下我们之前学的用记忆化搜索优化的求斐波那契数列 #include <iostream> #include <cstring> using namespace std; const int N 35; int f[N]; int dfs(int n) {if(f[n]!-1) return f[n];if(n1||n0) return f[n]n;return f[n] dfs(n-1)dfs(n-2…...

React底层原理详解

React中Element&Fiber对象、WorkInProgress双缓存、Reconcile&Render&Commit、第一次挂载过程详解 在面试中介绍React底层原理时&#xff0c;需遵循逻辑清晰、层次分明、重点突出的原则&#xff0c;结合技术深度与实际应用场景。以下是结构化回答模板&#xff1a;…...

[含文档+PPT+源码等]精品基于Python实现的vue3+Django计算机课程资源平台

基于Python实现的Vue3Django计算机课程资源平台的背景&#xff0c;可以从以下几个方面进行阐述&#xff1a; 一、教育行业发展背景 1. 教育资源数字化趋势 随着信息技术的快速发展&#xff0c;教育资源的数字化已成为不可逆转的趋势。计算机课程资源作为教育领域的重要组成部…...

通过 PromptTemplate 生成干净的 SQL 查询语句并执行SQL查询语句

问题描述 在使用 LangChain 和 Llama 模型生成 SQL 查询时&#xff0c;遇到了 sqlite3.OperationalError 错误。错误信息如下&#xff1a; OperationalError: (sqlite3.OperationalError) near "sql SELECT Name FROM MediaType LIMIT 5; ": syntax error [SQL: …...

Mercury、LLaDA 扩散大语言模型

LLaDA 参考&#xff1a; https://github.com/ML-GSAI/LLaDA https://ml-gsai.github.io/LLaDA-demo/ 在线demo&#xff1a; https://huggingface.co/spaces/multimodalart/LLaDA Mercury 在线demo&#xff1a; https://chat.inceptionlabs.ai/ 速度很快生成...

常用的AI文本大语言模型汇总

AI文本【大语言模型】 1、文心一言https://yiyan.baidu.com/ 2、海螺问问https://hailuoai.com/ 3、通义千问https://tongyi.aliyun.com/qianwen/ 4、KimiChat https://kimi.moonshot.cn/ 5、ChatGPThttps://chatgpt.com/ 6、魔塔GPT https://www.modelscope.cn/studios/iic…...

Starrocks入门(二)

1、背景&#xff1a;考虑到Starrocks入门这篇文章&#xff0c;安装的是3.0.1版本的SR&#xff0c;参考&#xff1a;Starrocks入门-CSDN博客 但是官网的文档&#xff0c;没有对应3.0.x版本的资料&#xff0c;却有3.2或者3.3或者3.4或者3.1或者2.5版本的资料&#xff0c;不要用较…...

记录一次跨库连表的坑

一、背景 1. 业务背景 一个微服务项目&#xff0c;本次业务主要涉及两个板块&#xff0c;分别是 文章管理 和 系统管理。具有开发环境、测试环境、生产环境三个环境。其中&#xff0c;开发环境和测试环境用的是同一个服务器&#xff08;nacos和MySQL都是用的同一个服务器中的…...

各种传参形式

一、QueryString 前端请求&#xff1a;http://localhost:8080/test/user/find?id26&namezhangsan 后端接收&#xff1a; 1.参数接收&#xff1a; RequestMapping("/find") public void find(String id,String name){... }2.对象接收&#xff1a; RequestMa…...

基于DeepSeek 的图生文最新算法 VLM-R1

目录 一、算法介绍 二 算法部署 三 模型下载 四 算法测试 五 可视化脚本 一、算法介绍 VLM-R1:稳定且可通用的 R1 风格大型视觉语言模型 自从 Deepseek-R1 推出以来,出现了许多专注于复制和改进它的作品。在这个项目中,我们提出了 VLM-R1,一种稳定且可通用的 R1 风格…...

⭐算法OJ⭐字符串与数组【动态规划 DP】(C++实现)最长公共子序列 LCS + 最短公共超序列 SCS

动态规划&#xff08;Dynamic Programming, DP&#xff09;在字符串数组相关的算法题中应用广泛&#xff0c;尤其是在解决子序列、子串、编辑距离、匹配等问题时。动态规划的核心思想是将问题分解为子问题&#xff0c;并通过存储子问题的解来避免重复计算&#xff0c;从而提高效…...

Ubuntu 下查看进程 PID 和终止进程方法

查看进程 PID 使用 ps 命令: ps aux | grep <process_name>例如&#xff0c;查看名为 python 的进程&#xff1a; ps aux | grep python使用 pgrep 命令: pgrep <process_name>例如&#xff0c;查看名为 python 的进程&#xff1a; pgrep python使用 top 命令: top…...

【无标题】Ubuntu22.04编译视觉十四讲slambook2 ch4时fmt库的报错

Ubuntu22.04编译视觉十四讲slambook2 ch4时fmt库的报错 cmake ..顺利&#xff0c;make后出现如下报错&#xff1a; in function std::make_unsigned<int>::type fmt::v8::detail::to_unsigned<int>(int): trajectoryError.cpp:(.text._ZN3fmt2v86detail11to_unsi…...