Packet Tracer – 使用 CDP 映射网络

# Packet Tracer – 使用 CDP 映射网络

## 地址分配表

设备

接口

IP 地址

子网掩码

本地接口和互联邻居

Edge1

G0/0

192.168.1.1

255.255.255.0

G0/1 - S1

S0/0/0

S0/0/0 - ISP

Branch-Edge

S0/0/1

209.165.200.10

255.255.255.252

S0/0/1 – ISP

Branch-Edge

G0/0

192.168.3.249

255.255.255.248

G0/0 – Branch-Firewall

Branch-Firewall

G0/0

192.168.3.253

255.255.255.248

G0/0 – Branch-Edge

Branch-Firewall

G0/1

192.168.4.129

255.255.255.128

G0/1 – sw-br-floor2

sw-br-floor1

G0/1

G0/1 – sw-br-floor3

sw-br-floor1

G0/2

G0/2 – sw-br-floor2

sw-br-floor2

G0/1

G0/1 – Branch-Firewall

sw-br-floor2

G0/2

G0/2 – sw-br-floor1

sw-br-floor2

F0/24

F0/24 – sw-br-floor3

sw-br-floor2

SVI

192.168.4.132

255.255.255.128

sw-br-floor3

F0/24

F0/24 – sw-br-floor2

sw-br-floor3

G0/1

G0/1 – sw-br-floor1

sw-br-floor3

SVI

192.168.4.133

255.255.255.128

## 目标

使用 CDP SSH 远程访问映射网络。

## #拓扑图

# 背景/场景

高级网络管理员要求您映射远程分支机构网络并查找最近安装的,仍需配置 IP 地址的交换机的名称。 您的任务是创建分支机构网络的映射。 您必须记录所有的网络设备名称、IP 地址和子网掩码、与网络设备互联的物理接口以及不具有 IP 地址的交换机名称。

要映射网络,您将使用 SSH 进行远程访问,并使用思科发现协议 (CDP) 发现有关相邻网络设备的信息(如路由器和交换机)。 由于 CDP 为第 2 层协议,因此可用于发现关于不具有 IP 地址的设备的信息。 您应记录收集的信息以完成地址分配表,并提供远程分支机构网络的拓扑图。

您将需要远程分支机构的 IP 地址 (209.165.200.10) 本地和远程管理用户名和密码是:

## 本地网络

用户名:admin01

密码:S3cre7P@55

## 分支机构网络

用户名:branchadmin

密码:S3cre7P@55

### 第 1 部分:    使用 SSH 远程访问网络设备

在第 1 部分中,您将使用 Admin-PC 远程访问 Edge1 网关路由器。 接着,从 Edge1 路由器,您将使用 SSH 登录远程分支机构。

a.     Admin-PC 上,打开命令提示符。

b.   使用用户名 admin01 和密码 S3cre7P@55 通过 SSH 连接到地址为 192.168.1.1 的网关路由器。

PC> ssh –l admin01 192.168.1.1

Open

密码:

Edge1#

:请注意您会直接进入特权 EXEC 模式。 这是因为 admin01 用户帐户设置为权限级别 15

c.    使用 show ip interface brief  show interfaces 命令在地址分配表中记录 Edge1 路由器的物理接口、IP 地址和子网掩码。

Edge1# show ip interface brief

Edge1#show ip interface brief

Interface IP-Address OK? Method Status Protocol

GigabitEthernet0/0 192.168.1.1 YES manual up up

GigabitEthernet0/1 unassigned YES unset administratively down down

Serial0/0/0 209.165.200.5 YES manual up up

Serial0/0/1 unassigned YES unset administratively down down

Vlan1 unassigned YES unset administratively down down

Edge1#

Edge1#show interfaces

GigabitEthernet0/0 is up, line protocol is up (connected)

Hardware is CN Gigabit Ethernet, address is 00e0.a3dd.7001 (bia 00e0.a3dd.7001)

Internet address is 192.168.1.1/24

MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, media type is RJ45

output flow-control is unsupported, input flow-control is unsupported

ARP type: ARPA, ARP Timeout 04:00:00,

Last input 00:00:08, output 00:00:05, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: fifo

Output queue :6/40 (size/max)

5 minute input rate 8 bits/sec, 0 packets/sec

5 minute output rate 6 bits/sec, 0 packets/sec

30 packets input, 1215 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 watchdog, 1017 multicast, 0 pause input

0 input packets with dribble condition detected

14 packets output, 576 bytes, 0 underruns

0 output errors, 0 collisions, 1 interface resets

0 unknown protocol drops

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier

0 output buffer failures, 0 output buffers swapped out

GigabitEthernet0/1 is administratively down, line protocol is down (disabled)

Hardware is CN Gigabit Ethernet, address is 00e0.a3dd.7002 (bia 00e0.a3dd.7002)

MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, media type is RJ45

output flow-control is unsupported, input flow-control is unsupported

ARP type: ARPA, ARP Timeout 04:00:00,

Last input 00:00:08, output 00:00:05, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: fifo

Output queue :0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 watchdog, 1017 multicast, 0 pause input

0 input packets with dribble condition detected

0 packets output, 0 bytes, 0 underruns

0 output errors, 0 collisions, 2 interface resets

0 unknown protocol drops

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier

0 output buffer failures, 0 output buffers swapped out

Serial0/0/0 is up, line protocol is up (connected)

Hardware is HD64570

Internet address is 209.165.200.5/30

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation HDLC, loopback not set, keepalive set (10 sec)

Last input never, output never, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: weighted fair

Output queue: 0/1000/64/0 (size/max total/threshold/drops)

Conversations 0/0/256 (active/max active/max total)

Reserved Conversations 0/0 (allocated/max allocated)

Available Bandwidth 1158 kilobits/sec

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 packets output, 0 bytes, 0 underruns

0 output errors, 0 collisions, 0 interface resets

0 output buffer failures, 0 output buffers swapped out

0 carrier transitions

DCD=up DSR=up DTR=up RTS=up CTS=up

Serial0/0/1 is administratively down, line protocol is down (disabled)

Hardware is HD64570

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation HDLC, loopback not set, keepalive set (10 sec)

Last input never, output never, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: weighted fair

Output queue: 0/1000/64/0 (size/max total/threshold/drops)

Conversations 0/0/256 (active/max active/max total)

Reserved Conversations 0/0 (allocated/max allocated)

Available Bandwidth 1158 kilobits/sec

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 packets output, 0 bytes, 0 underruns

0 output errors, 0 collisions, 2 interface resets

0 output buffer failures, 0 output buffers swapped out

0 carrier transitions

DCD=down DSR=down DTR=down RTS=down CTS=down

Vlan1 is administratively down, line protocol is down

Hardware is CPU Interface, address is 0060.70bd.dd13 (bia 0060.70bd.dd13)

MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

ARP type: ARPA, ARP Timeout 04:00:00

Last input 21:40:21, output never, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Queueing strategy: fifo

Output queue: 0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

1682 packets input, 530955 bytes, 0 no buffer

Received 0 broadcasts (0 IP multicast)

0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

563859 packets output, 0 bytes, 0 underruns

0 output errors, 23 interface resets

0 output buffer failures, 0 output buffers swapped out

Edge1#

d.   使用 Edge1 路由器的 CLI,您将使用用户名 branchadmin 和同一密码通过 SSH 连接到地址为 209.165.200.10 的远程分支机构:

Edge1# ssh –l branchadmin 209.165.200.10

Open

密码:

Branch-Edge#

连接到地址为 209.165.200.10 的远程分支机构后,即可将以前缺失的哪些信息添加到上述地址分配表中?

分支边缘路由器主机名

2 部分:    使用 CDP 发现相邻设备

现在您已远程连接到 Branch-Edge 路由器。 使用 CDP,开始寻找互联的网络设备。

a.    发出 show ip interface brief  show interfaces 命令,以记录分支边界路由器的网络接口、IP 地址和子网掩码。 将缺失的信息添加到地址分配表中以映射网络:

Branch-Edge# show ip interface brief

Branch-Edge#show ip interface brief

Interface IP-Address OK? Method Status Protocol

GigabitEthernet0/0 192.168.3.249 YES manual up up

GigabitEthernet0/1 unassigned YES unset administratively down down

Serial0/0/0 unassigned YES unset administratively down down

Serial0/0/1 209.165.200.10 YES manual up up

Vlan1 unassigned YES unset administratively down down

Branch-Edge#

Branch-Edge# show interfaces

Branch-Edge#show interfaces

GigabitEthernet0/0 is up, line protocol is up (connected)

Hardware is CN Gigabit Ethernet, address is 0001.9660.0053 (bia 0001.9660.0053)

Internet address is 192.168.3.249/29

MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, media type is RJ45

output flow-control is unsupported, input flow-control is unsupported

ARP type: ARPA, ARP Timeout 04:00:00,

Last input 00:00:08, output 00:00:05, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: fifo

Output queue :0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 watchdog, 1017 multicast, 0 pause input

0 input packets with dribble condition detected

0 packets output, 0 bytes, 0 underruns

0 output errors, 0 collisions, 1 interface resets

0 unknown protocol drops

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier

0 output buffer failures, 0 output buffers swapped out

GigabitEthernet0/1 is administratively down, line protocol is down (disabled)

Hardware is CN Gigabit Ethernet, address is 0001.9727.a463 (bia 0001.9727.a463)

MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, media type is RJ45

output flow-control is unsupported, input flow-control is unsupported

ARP type: ARPA, ARP Timeout 04:00:00,

Last input 00:00:08, output 00:00:05, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: fifo

Output queue :0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 watchdog, 1017 multicast, 0 pause input

0 input packets with dribble condition detected

0 packets output, 0 bytes, 0 underruns

0 output errors, 0 collisions, 2 interface resets

0 unknown protocol drops

0 babbles, 0 late collision, 0 deferred

0 lost carrier, 0 no carrier

0 output buffer failures, 0 output buffers swapped out

Serial0/0/0 is administratively down, line protocol is down (disabled)

Hardware is HD64570

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation HDLC, loopback not set, keepalive set (10 sec)

Last input never, output never, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: weighted fair

Output queue: 0/1000/64/0 (size/max total/threshold/drops)

Conversations 0/0/256 (active/max active/max total)

Reserved Conversations 0/0 (allocated/max allocated)

Available Bandwidth 1158 kilobits/sec

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

0 packets input, 0 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

0 packets output, 0 bytes, 0 underruns

0 output errors, 0 collisions, 2 interface resets

0 output buffer failures, 0 output buffers swapped out

0 carrier transitions

DCD=down DSR=down DTR=down RTS=down CTS=down

Serial0/0/1 is up, line protocol is up (connected)

Hardware is HD64570

Internet address is 209.165.200.10/30

MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation HDLC, loopback not set, keepalive set (10 sec)

Last input never, output never, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0 (size/max/drops); Total output drops: 0

Queueing strategy: weighted fair

Output queue: 6/1000/64/0 (size/max total/threshold/drops)

Conversations 1/1/256 (active/max active/max total)

Reserved Conversations 0/0 (allocated/max allocated)

Available Bandwidth 1158 kilobits/sec

5 minute input rate 16 bits/sec, 0 packets/sec

5 minute output rate 10 bits/sec, 0 packets/sec

74 packets input, 3017 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

24 packets output, 981 bytes, 0 underruns

0 output errors, 0 collisions, 0 interface resets

0 output buffer failures, 0 output buffers swapped out

0 carrier transitions

DCD=up DSR=up DTR=up RTS=up CTS=up

Vlan1 is administratively down, line protocol is down

Hardware is CPU Interface, address is 0001.4360.6197 (bia 0001.4360.6197)

MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

ARP type: ARPA, ARP Timeout 04:00:00

Last input 21:40:21, output never, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

Queueing strategy: fifo

Output queue: 0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

1682 packets input, 530955 bytes, 0 no buffer

Received 0 broadcasts (0 IP multicast)

0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

563859 packets output, 0 bytes, 0 underruns

0 output errors, 23 interface resets

0 output buffer failures, 0 output buffers swapped out

Branch-Edge#

b.   安全最佳实践建议仅在需要时运行 CDP,因此可能需要打开 CDP 使用 show cdp 命令测试其状态。

Branch-Edge# show cdp

% CDP is not enabled

c.    需要打开 CDP,但最好仅向内部网络设备而不向外部网络广播 CDP 信息。 为此,请在 s0/0/1 接口上禁用 CDP,然后打开 CDP 协议。

Branch-Edge# configure terminal

Branch-Edge(config)# interface s0/0/1

Branch-Edge(config-if)# no cdp enable

Branch-Edge(config-if)# exit

Branch-Edge(config)# cdp run

d.   发出 show cdp neighbors 命令以查找任何相邻的网络设备

CDP 将仅显示还运行 CDP 的互联思科设备。

Branch-Edge# show cdp neighbors

Branch-Edge# show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

Branch-Firewall

Gig 0/0 137 R C1900 Gig 0/0

Branch-Edge#

是否存在邻近网络设备? 它是哪种类型的设备? 它的名称是什么? 它连接的接口是什么? 该设备的 IP 地址是否列出? 将信息记录在地址分配表中。

它是一个路由器。它的名称是分支防火墙,并在接口 G0/0 上连接。未列出设备的 IP 地址。

e.    要查找相邻设备的 IP 地址,使用 show cdp neighbors detail 命令,并记录 IP 地址:

Branch-Edge# show cdp neighbors detail

Branch-Edge# show cdp neighbors detail

Device ID: Branch-Firewall

Entry address(es):

IP address : 192.168.3.253

Platform: cisco C1900, Capabilities: Router

Interface: GigabitEthernet0/0, Port ID (outgoing port): GigabitEthernet0/0

Holdtime: 161

Version :

Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2012 by Cisco Systems, Inc.

Compiled Thurs 5-Jan-12 15:41 by pt_team

advertisement version: 2

Duplex: full

Branch-Edge#

除了邻近设备的 IP 地址,还列出了其他哪些可能敏感的信息?

相邻设备的 IOS 软件版本。

f.    现在您知道了邻居设备的 IP 地址,您需要通过 SSH 与其相连,以发现其他可能的相邻设备

:要使用 SSH 连接,请使用相同的远程分支机构用户名和密码。

Branch-Edge# ssh –l branchadmin <the ip address of the neighbor device>

Branch-Edge#ssh -l branchadmin 192.168.3.253

Password:

Branch-Firewall#

使用 SSH 连接成功后,命令提示符会显示什么信息?

Branch-FireWall#

g.   您已远程连接到下一个邻居。 使用 show cdp neighbors 命令和 show cdp neighbors detail 命令,发现其他互联的邻近设备

Branch-Firewall#show cdp neighbors

Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge

S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone

Device ID Local Intrfce Holdtme Capability Platform Port ID

sw-br-floor2

Gig 0/1 160 S 2960 Gig 0/1

Branch-Edge Gig 0/0 172 R C1900 Gig 0/0

Branch-Firewall#

Branch-Firewall#show cdp neighbors detail

Device ID: sw-br-floor2

Entry address(es):

IP address : 192.168.4.132

Platform: cisco 2960, Capabilities: Switch

Interface: GigabitEthernet0/1, Port ID (outgoing port): GigabitEthernet0/1

Holdtime: 128

Version :

Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2005 by Cisco Systems, Inc.

Compiled Wed 12-Oct-05 22:05 by pt_team

advertisement version: 2

Duplex: full

---------------------------

Device ID: Branch-Edge

Entry address(es):

IP address : 192.168.3.249

Platform: cisco C1900, Capabilities: Router

Interface: GigabitEthernet0/0, Port ID (outgoing port): GigabitEthernet0/0

Holdtime: 139

Version :

Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2012 by Cisco Systems, Inc.

Compiled Thurs 5-Jan-12 15:41 by pt_team

advertisement version: 2

Duplex: full

Branch-Firewall#

哪些类型的设备邻近该设备 将任何最新发现的设备记录在地址分配表中。 包括其用户名、接口和 IP 地址。

路由器(Branch-Edge)和交换机(sw-br-floor2)。sw-br-floor2 交换机是新发现的设备,位于 G192/168 接口上的 192.168.4.132

h.    继续使用 SSH show CDP 命令发现新的网络设备。 最后,您将到达网络终端,并且将不会发现更多的设备。

网络中不具有 IP 地址的交换机的名称是什么?

sw-br-floor1

i.     借助您使用 CDP 收集的信息绘制远程分支机构网络的拓扑。

【实验链接】

链接:https://pan.baidu.com/s/13AU6e5nCI39Ot-U0ZW2Q2w?pwd=1011

提取码:1011

--来自百度网盘超级会员V3的分享

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/9288.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

flink to starrocks 问题集锦....

[问题排查]导入失败相关 - 问题排查 - StarRocks中文社区论坛 starrocks官网如下&#xff1a; Search StarRocks Docs starrocks内存配置项&#xff1a; 管理内存 Memory_management StarRocks Docs 问题1&#xff1a;实时写入starrocks &#xff0c;配置参数设置如下&a…

Java书签 #解锁MyBatis的4种批量插入方式及ID返回姿势

1. 今日书签 项目开发中&#xff0c;我们经常会用到单条插入和批量插入。但是实际情况可能是&#xff0c;项目初期由于种种原因&#xff0c;在业务各处直接使用单条插入SQL进行开发&#xff08;未开启批处理&#xff09;&#xff0c;在后面的迭代中&#xff0c;系统性能问题渐…

【数据挖掘】如何修复时序分析缺少的日期

一、说明 我撰写本文的目的是通过引导您完成一个示例来帮助您了解 TVF 以及如何使用它们&#xff0c;该示例解决了时间序列分析中常见的缺失日期问题。 我们将介绍&#xff1a; 如何生成日期以填补数据中缺失的空白如何创建 TVF 和参数的使用如何呼叫 TVF我们将考虑扩展我们的日…

字典序排数(力扣)思维 JAVA

给你一个整数 n &#xff0c;按字典序返回范围 [1, n] 内所有整数。 你必须设计一个时间复杂度为 O(n) 且使用 O(1) 额外空间的算法。 示例 1&#xff1a; 输入&#xff1a;n 13 输出&#xff1a;[1,10,11,12,13,2,3,4,5,6,7,8,9] 示例 2&#xff1a; 输入&#xff1a;n 2 输…

3.矩阵常用操作

文章目录 线性代数的常用操作1.向量的内积2.向量的外积3.正交向量4.正交向量组5.向量空间的基与维数6.正交矩阵7.反对称矩阵8.齐次坐标与齐次变换矩阵9.相似矩阵10.相似对角化11.矩阵的特征分解12.奇异值分解SVD12.1 SVD求齐次矩阵方程的最小二乘解 13.满秩分解14.Pseudo-Inver…

使用网络 IP 扫描程序的原因

随着网络不断扩展以满足业务需求&#xff0c;高级 IP 扫描已成为网络管理员确保网络可用性和性能的关键任务。在大型网络中扫描 IP 地址可能具有挑战性&#xff0c;这些网络通常包括具有动态 IP、多个 DNS、DHCP 配置和复杂子网的有线和无线设备。使用可提供全面 IP 地址管理 &…

【简单图论】CF1833 E

Problem - E - Codeforces 题意&#xff1a; 思路&#xff1a; 显然&#xff0c;最大值就是什么边都不连的连通块个数&#xff0c;最小值就是能连的都连上 那就是&#xff0c;如果一个连通块存在度为1的点&#xff0c;就把它当作接口连接 Code&#xff1a; #include <b…

Spring Boot 集成 Redis 三种模式实践汇总

背景 项目的某个模块集成了 SpringBoot Redis 包&#xff0c;客户端使用 Lettuce&#xff0c;Redis 测试环境单机模式。但是现场反馈的 Redis 环境是集群&#xff0c;如果简单的修改 spring.redis 配置为集群的配置信息&#xff0c;程序能否能无缝衔接呢&#xff1f; 本文记录…

音视频——帧内预测

H264编码(帧内预测) 在帧内预测模式中&#xff0c;预测块P是基于已编码重建块和当前块形成的。对亮度像素而言&#xff0c;P块用于44子块或者1616宏块的相关操作。44亮度子块有9种可选预测模式&#xff0c;独立预测每一个44亮度子块&#xff0c;适用于带有大量细节的图像编码&…

Gempy三维结构地质建模简明教程

Gempy 是一个开源 Python 库&#xff0c;用于生成完整的 3D 结构地质模型。 该库是一个完整的开发&#xff0c;用于从界面、断层和层方向创建地质模型&#xff0c;它还关联地质层的顺序以表示岩石侵入和断层顺序。 推荐&#xff1a;用 NSDT设计器 快速搭建可编程3D场景。 地质建…

LLaMA2可商用|GPT-4变笨|【2023-0723】【第七期】

一、大咖观点&#xff1a; 傅盛&#xff1a;ChatGPT时代如何创业 - BOTAI - 博客园Google 已经被OpenAI 超越了吗&#xff1f;| AlphaGo 之父深度访谈《人民日报》&#xff1a;大模型的竞争&#xff0c;是国家科技战略的竞争WAIC 2023 | 张俊林&#xff1a;大语言模型带来的交…

设计模式之状态模式

状态决定行为。由于状态在运行期间是可以被改变的。在VoteManager类中根据条件来创建不同的状态实现类&#xff0c;于是到最后就会调用不同的逻辑。 看起来同一个对象&#xff0c;在不同的运行时刻&#xff0c;行为是不一样的&#xff0c;就像是类被修改了一样&#xff01; 场…

labview 信号量实现互斥 避免竞争写

上一篇文章中描述了事件发生、集合点、通知器、信号量。 本文进一步举例描述信号量实现互斥&#xff0c;避免竞争写。 1.不用信号量的例子 图1-不用信号量的结果都不同&#xff0c;不为0 图2-不用信号量的例子&#xff0c;程序框图 2.用信号量的例子 图3-用信号量的例子&…

结构型设计模式之亨元模式【设计模式系列】

系列文章目录 C技能系列 Linux通信架构系列 C高性能优化编程系列 深入理解软件架构设计系列 高级C并发线程编程 设计模式系列 期待你的关注哦&#xff01;&#xff01;&#xff01; 现在的一切都是为将来的梦想编织翅膀&#xff0c;让梦想在现实中展翅高飞。 Now everythi…

MySQL 主从复制的认识 2023.07.23

一、理解MySQL主从复制原理 1、概念&#xff1a;主从复制是用来建立一个和 主数据库完全一样的数据库环境称为从数据库&#xff1b;主数据库一般是准实时的业务数据库。 2、作用&#xff1a;灾备、数据分布、负载平衡、读写分离、提高并发能力 3、原理图 4、具体步骤 (1) M…

Windows nvm 安装后webstrom vue项目编译报错,无法识别node

1 nvm安装流程 卸载原先nodejs用管理员权限打开exe安装nvmnvm文件夹和nodejs文件夹 都授权Authenticated Users 完全控制nvm list availablenvm install 16.20.1nvm use 16.20.1输入node和npm检查版本命令&#xff0c;正常显示确认系统变量和用户变量都有nvm 和nodejs 2 bug情…

iTOP-RK3568开发板Docker 安装 Ubuntu 18.04

Docker 下载安装 Ubuntu18.04&#xff0c;输入以下命令&#xff1a; sudo apt update docker pull ubuntu:18.04 切换 Shell 到 Ubuntu 18.04&#xff0c;输入以下命令&#xff1a; docker container run -p 8000:3000 -it ubuntu:18.04 /bin/bash -p 参数&#xff1a;容器的…

Ftp和UDP的区别之如何加速文件传输

FTP&#xff08;文件传输协议&#xff09;是一种传输大文件的老方法&#xff0c;它的速度慢&#xff0c;而且容易受到网络环境的影响。在当今这个文件越来越大&#xff0c;项目交付时间越来越紧&#xff0c;工作分布在全球各地的时代&#xff0c;有没有办法让 FTP 加速呢&#…

大数据课程D2——hadoop的概述

文章作者邮箱&#xff1a;yugongshiyesina.cn 地址&#xff1a;广东惠州 ▲ 本章节目的 ⚪ 了解hadoop的定义和特点&#xff1b; ⚪ 掌握hadoop的基础结构&#xff1b; ⚪ 掌握hadoop的常见命令&#xff1b; ⚪ 了解hadoop的执行流程&#xff1b; 一、简介 1…

adnroid 11. 0 Activity启动流程图解

从Launcher到ActivityTaskManager 从ActivityTaskManagerService 到 ApplicationThread 从ApplicationThread到onCreate