广播风暴的分析和解决方法(STP配置)

news2024/11/23 23:39:40

目录

1.广播风暴

2.解决方法:配置STP


1.广播风暴

以下图为例 

 配置交换机LSW1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname LSW1
[LSW1]stp
Sep 14 2023 05:35:15-08:00 LSW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 4, the 
change loop count is 0, and the maximum number of records is 4095. 
          ^
Error:Incomplete command found at '^' position.
[LSW1]undo info-center enable
Info: Information center is disabled.
[LSW1]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-cc15-19c9
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-19c9 / 0
CIST RegRoot/IRPC   :32768.4c1f-cc15-19c9 / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :2
TC count per hello  :0
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:1m:27s
Number of TC        :4
Last TC occurred    :GigabitEthernet0/0/3
----[Port1(GigabitEthernet0/0/1)][LEARNING]----
 Port Protocol       :Enabled
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc15-19c9 / 128.1
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None

[LSW1]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
[LSW1]display mac-address
端口STP角色STP状态端口ID
GE 0/0/1指定端口FORWARDING (转发)0
GE 0/0/2指定端口FORWARDING (转发)0
GE 0/0/3指定端口FORWARDING (转发)0

禁用g0/0/1和g0/0/2端口  

[LSW1]display mac-address
[LSW1]interface gigabitethernet 0/0/1
[LSW1-GigabitEthernet0/0/1]undo stp enable
[LSW1-GigabitEthernet0/0/1]qu
[LSW1]interface gigabitethernet 0/0/2
[LSW1-GigabitEthernet0/0/2]undo stp enable
[LSW1-GigabitEthernet0/0/2]qu

 对LSW2做同样的操作 

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname LSW2
[LSW2]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW2]
Sep 14 2023 05:44:17-08:00 LSW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 5, the 
change loop count is 0, and the maximum number of records is 4095.
[LSW2]undo info-center enable
Info: Information center is disabled.
[LSW2]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-cc39-46ec
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc39-46ec / 0
CIST RegRoot/IRPC   :32768.4c1f-cc39-46ec / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :108
TC count per hello  :0
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:3m:14s
Number of TC        :10
Last TC occurred    :GigabitEthernet0/0/2
----[Port1(GigabitEthernet0/0/1)][LEARNING]----
 Port Protocol       :Enabled
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc39-46ec / 128.1
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None

[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
[LSW2]display mac-address
[LSW2]interface g0/0/1
[LSW2-GigabitEthernet0/0/1]undo stp enable
[LSW2-GigabitEthernet0/0/1]qu
[LSW2]interface g0/0/2
[LSW2-GigabitEthernet0/0/2]undo stp enable
[LSW2-GigabitEthernet0/0/2]qu

 当我们互ping两个PC时,即

PC>ping 192.168.100.19 -c 8
PC>ping 192.168.100.29 -c 8

#会出现请求超时的现象
Ping 192.168.100.19: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
Request timeout!

这时我们再查看mac地址表

[LSW1]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-9880-36b4 1           -      -      GE0/0/1         dynamic   0/-         
5489-98a8-0ea0 1           -      -      GE0/0/2         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2 

[LSW2]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-9880-36b4 1           -      -      GE0/0/2         dynamic   0/-         
5489-98a8-0ea0 1           -      -      GE0/0/1         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2 

 这时可以看到数据抓包,数据抓取速度很快,出现广播风暴,瞬间几千条数据,在交换机中输入命令时也会出现明显延迟

在不同的时间段查看LSW2的mac地址表

可以看到同一mac地址,记录了不同的端口(mac地址震荡)

这是由于广播风暴导致广播消息在网络中被无限循环转发,交换机会不断地接收到重复的广播消息,并会记录下每个消息的源MAC地址和接收端口。这时cpu的利用率也会不断提高,网络性能变差。

[LSW2]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-9880-36b4 1           -      -      GE0/0/1         dynamic   0/-         
5489-98a8-0ea0 1           -      -      GE0/0/2         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2 

[LSW2]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
5489-9880-36b4 1           -      -      GE0/0/2         dynamic   0/-         
5489-98a8-0ea0 1           -      -      GE0/0/1         dynamic   0/-         
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2 

2.解决方法:配置STP

以下图为例

 配置LSW1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname LSW1
[LSW1]
Sep 14 2023 06:29:37-08:00 LSW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 4, the 
change loop count is 0, and the maximum number of records is 4095.
[LSW1]UNDO info-center enable
Info: Information center is disabled.
[LSW1]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-cc15-4618
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-4618 / 0
CIST RegRoot/IRPC   :32768.4c1f-cc15-4618 / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :5
TC count per hello  :0
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:2m:14s
Number of TC        :5
Last TC occurred    :GigabitEthernet0/0/1
----[Port1(GigabitEthernet0/0/1)][DISCARDING]----
 Port Protocol       :Enabled
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc15-4618 / 128.1
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None

[LSW1]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/2        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/3        DESI  LEARNING        NONE
[LSW1]display stp interface g0/0/1
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-cc15-4618
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-4618 / 0
CIST RegRoot/IRPC   :32768.4c1f-cc15-4618 / 0
CIST RootPortId     :0.0
BPDU-Protection     :Disabled
TC or TCN received  :5
TC count per hello  :0
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:0m:29s
Number of TC        :8
Last TC occurred    :GigabitEthernet0/0/3
----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
 Port Protocol       :Enabled
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc15-4618 / 128.1
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 pack
[LSW1]display stp interface g0/0/1 brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
[LSW1]display mac-address

对交换机LSW2采用同样的配置

具有最高优先级的交换机被选为根网桥。若优先级相等,则具有最小MAC 地址的交换机被选为根网桥。默认情况下,交换机的优先级是 32768,在这里将LSW2的优先级设置为8192

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname LSW2
[LSW2]STP
Sep 14 2023 06:33:29-08:00 LSW2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 4, the 
change loop count is 0, and the maximum number of records is 4095. 
          ^
Error:Incomplete command found at '^' position.
[LSW2]undo info-center enable
Info: Information center is disabled.
[LSW2]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW2]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-ccd4-5efe
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-4618 / 40000
CIST RegRoot/IRPC   :32768.4c1f-ccd4-5efe / 0
CIST RootPortId     :128.1
BPDU-Protection     :Disabled
TC or TCN received  :62
TC count per hello  :2
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:3m:24s
Number of TC        :6
Last TC occurred    :GigabitEthernet0/0/1
----[Port1(GigabitEthernet0/0/1)][DISCARDING]----
 Port Protocol       :Enabled
 Port Role           :Root Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc75-09aa / 128.3
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None

[LSW2]display stp int g0/0/1
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-ccd4-5efe
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-4618 / 40000
CIST RegRoot/IRPC   :32768.4c1f-ccd4-5efe / 0
CIST RootPortId     :128.1
BPDU-Protection     :Disabled
TC or TCN received  :78
TC count per hello  :2
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:3m:42s
Number of TC        :6
Last TC occurred    :GigabitEthernet0/0/1
----[Port1(GigabitEthernet0/0/1)][LEARNING]----
 Port Protocol       :Enabled
 Port Role           :Root Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc75-09aa / 128.3
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None

[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE
   0    GigabitEthernet0/0/2        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
[LSW2]display stp int g0/0/1 brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE

[LSW2]display mac-address
#设置优先级
[LSW2]stp priority 8192

[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  DISCARDING      NONE
   0    GigabitEthernet0/0/2        DESI  DISCARDING      NONE
   0    GigabitEthernet0/0/3        DESI  DISCARDING      NONE
[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
[LSW2]display stp int g 0/0/1 brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE

 对交换机LSW3采用同样的配置 

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname LSW3
[LSW3]
Sep 14 2023 06:36:08-08:00 LSW3 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 4, the 
change loop count is 0, and the maximum number of records is 4095.

[LSW3]undo info-center enable
Info: Information center is disabled.
[LSW3]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW3]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-cc75-09aa
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-4618 / 20000
CIST RegRoot/IRPC   :32768.4c1f-cc75-09aa / 0
CIST RootPortId     :128.1
BPDU-Protection     :Disabled
TC or TCN received  :93
TC count per hello  :2
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:2m:13s
Number of TC        :13
Last TC occurred    :GigabitEthernet0/0/3
----[Port1(GigabitEthernet0/0/1)][DISCARDING]----
 Port Protocol       :Enabled
 Port Role           :Root Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc15-4618 / 128.1
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None

[LSW3]display stp int g0/0/1
-------[CIST Global Info][Mode STP]-------
CIST Bridge         :32768.4c1f-cc75-09aa
Config Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times        :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC      :32768.4c1f-cc15-4618 / 20000
CIST RegRoot/IRPC   :32768.4c1f-cc75-09aa / 0
CIST RootPortId     :128.1
BPDU-Protection     :Disabled
TC or TCN received  :104
TC count per hello  :1
STP Converge Mode   :Normal 
Time since last TC  :0 days 0h:2m:26s
Number of TC        :13
Last TC occurred    :GigabitEthernet0/0/3
----[Port1(GigabitEthernet0/0/1)][LEARNING]----
 Port Protocol       :Enabled
 Port Role           :Root Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc15-4618 / 128.1
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 pack
[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  LEARNING        NONE
   0    GigabitEthernet0/0/2        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/3        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/4        DESI  LEARNING        NONE
[LSW3]display stp int g0/0/1 brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE
[LSW3]display mac-address

[LSW3]stp priority 4096
[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  DISCARDING      NONE
   0    GigabitEthernet0/0/2        DESI  DISCARDING      NONE
   0    GigabitEthernet0/0/3        DESI  DISCARDING      NONE
   0    GigabitEthernet0/0/4        DESI  DISCARDING      NONE
[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/2        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/3        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/4        DESI  LEARNING        NONE
[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/2        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/3        DESI  LEARNING        NONE
   0    GigabitEthernet0/0/4        DESI  LEARNING        NONE
[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/4        DESI  FORWARDING      NONE

[LSW3]display stp interface g0/0/1 brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE

根据LSW2,LSW3都可以看到,端口状态的改变是需要时间的,具体时间可看下图: 

 

 做完LSW3的配置后,再看看LSW2,LSW1各端口状态 

[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE
   0    GigabitEthernet0/0/2        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE

[LSW1]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE
   0    GigabitEthernet0/0/2        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE

[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/4        DESI  FORWARDING      NONE

 可以看到LSW1和LSW2的g0/0/2端口被禁用了

对于stp端口选择的规则可以看看这篇:

  http://t.csdn.cn/ySTni

上面也可以看出stp端口角色名:

  1. Root Port(根端口):连接到具有最低优先级的交换机的端口,该端口是距离生成树的根交换机最近的端口。

  2. Designated Port(指定端口):对于每个网络段(LAN),STP选择一个指定端口,该端口用于发送和接收数据包,并作为该网络段连接的交换机的主要路径。

  3. Blocking Port(阻塞端口):处于非活动状态,用于阻止环路的形成。阻塞端口不传递数据,并且不参与生成树的计算。

  4. Non-Designated Port(非指定端口):与指定端口相反,在特定的网络段上不被选为主要路径的端口。

端口分配如下: 

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

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

相关文章

SAP中销售订单运达方导致销项税错误问题实例

近期财务同事反映SAP中一笔国内客户的销售发票会计凭证中显示码是X0&#xff0c;代出的销项税是0。 进一步检查销售发票billing&#xff0c;发现发票价格条件中销税税条件取值确实是0。 基于税码决定的系统逻辑&#xff0c;前面博客中也曾专门分析过。下面在追踪问题时就会按这…

九、蜂鸣器

九、蜂鸣器 蜂鸣器介绍蜂鸣器播放提示音 蜂鸣器介绍 音符频率对照表 蜂鸣器播放提示音 #include <REGX52.H> #include <INTRINS.H> //蜂鸣器端口&#xff1a; sbit BuzzerP1^5; void Buzzer_Delay500us() //12.000MHz {unsigned char i;_nop_();i 247;while (-…

【计算机组成原理】读书笔记第三期:内存和磁盘的关系

目录 写在开头 内存与磁盘的关系 基本关系 磁盘缓存 虚拟内存 节约内存的编程方法 通过DLL文件实现函数共有 通过调用_stdcall来降低文件程序的大小 磁盘的物理结构 结尾 写在开头 本文继续阅读总结《程序是怎样跑起来的》这本书&#xff08;作者&#xff1a;矢泽…

基于Java的流浪动物救助及领养管理设计与实现

前言 &#x1f497;博主介绍&#xff1a;✌全网粉丝10W,CSDN特邀作者、博客专家、CSDN新星计划导师、全栈领域优质创作者&#xff0c;博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战✌&#x1f497; &#x1f447;&#x1f3fb;…

机器人制作开源方案 | 随叫随到的智能垃圾桶

作者&#xff1a;卢智浩 尹宗岱 胡文珺 付文智 陈星 单位&#xff1a;江汉大学 指导老师&#xff1a;侍中楼 李巍 本作品围绕探索者场景和应用主题&#xff0c;基于当今时代“智能家”的快速发展&#xff0c;智慧生活成为未来的一大发展趋势&#xff0c;因此我们设计了此款可…

基于Java网络书店商城设计实现(源码+lw+部署文档+讲解等)

博主介绍&#xff1a;✌全网粉丝30W,csdn特邀作者、博客专家、CSDN新星计划导师、Java领域优质创作者,博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java技术领域和毕业项目实战✌ &#x1f345;文末获取源码联系&#x1f345; &#x1f447;&#x1f3fb; 精彩专…

从零开始学习 Java:简单易懂的入门指南之Stream流(二十七)

Stream流 Stream流1.体验Stream流2.Stream流的常见生成方式3.Stream流中间操作方法4.Stream流终结操作方法5.Stream流的收集操作6.Stream流综合练习 Stream流 1.体验Stream流 案例需求 按照下面的要求完成集合的创建和遍历 创建一个集合&#xff0c;存储多个字符串元素把集合中…

GO-日志分析

GO-日志分析 log包简介 Go提供了logger包来做日志记录。使用方式如下所示 package mainimport ("log""os" )func main() {// 创建一个新的日志文件.默认是stdOutfile, err : os.Create("app.log")if err ! nil {log.Fatal(err)}defer file.Cl…

Linux系统远程访问另一台Windows系统的解决方案

SSH方法 在windows上安装openssh server&#xff0c;在 linux上安装openssh。通常linux会自带openssh&#xff0c;故这里只讲解windows上安装openssh server的方法 1、检查openssh server是否存在 以管理员身份进入Powershell&#xff0c;输入以下命令 Get-WindowsCapabili…

Win10、Win11家庭版开启远程桌面

Win11家庭版开启远程桌面 在windows家庭版中&#xff0c;是不提供远程桌面服务的&#xff0c;你没有办法使用远程桌面连接到windows家庭版中。当然&#xff0c; 你可用升级windows 版本到专业版&#xff0c;这样就可用享受到windows自带的远程桌面服务了。 我的电脑是win11家庭…

【Linux基础】第27讲:Linux查找和过滤命令(二)——grep命令

Grep命令 grep是根据文件的内容进行查找&#xff0c;会对文件的每一行按照给定的模式&#xff08;patter&#xff09;进行匹配查找 基本格式&#xff1a; grep [options]范围 [options] 主要参数 -c: 只输出匹配行的计数 -i : 不区分大小写 -n: 显示匹配行及行号 -w: 显示整个…

【鸽鸽送书第一期】 | 实现可观测性平台的技术要点是什么?文末参与送书哦!

&#x1f3ac; 鸽芷咕&#xff1a;个人主页 &#x1f525; 个人专栏:《粉丝福利》 《C语言进阶篇》 ⛺️生活的理想&#xff0c;就是为了理想的生活! 文章目录 &#x1f4cb; 前言实现可观测性平台的技术要点是什么&#xff1f;1.兼容全域信号量2.所谓全域信号量有哪些&#x…

除了天地图,还有哪些平台可以标绘地图?

想要在地图上标绘业务数据或制作个人地图&#xff0c;却难以找到一款得心应手的地图标绘平台。 在经过一番探索查找之后&#xff0c;发现天地图的标注功能还比较适用。 天地图中的标注 在天地图中&#xff0c;可以将现有的数据导入与地图进行叠加&#xff0c;也可以将绘制的地…

计算机网络工程师多选题系列——计算机网络

2 计算机网络 2.1 网络技术基础 题型1 TCP/IP与ISO模型的问题 TCP/IP由IETF制定&#xff0c;ISO由OSI制定&#xff1b; TCP/IP分为四层&#xff0c;分别是主机-网络层、互联网络层、传输层和应用层&#xff1b;OSI分为七层&#xff0c;分别是物理层、数据链路层、网络层(实…

Visual Studio 更新:远程文件管理器

Visual Studio 中的远程文件管理器可以用来访问远程机器上的文件和文件夹&#xff0c;通过 Visual Studio 自带的连接管理器&#xff0c;可以实现不离开开发环境直接访问远程系统&#xff0c;这确实十分方便。 自从此功能发布以来&#xff0c;VS 开发团队努力工作&#xff0c;…

【2023年11月第四版教材】第13章《资源管理》(合集篇)

第13章《资源管理》&#xff08;合集篇&#xff09; 1 章节说明2 管理基础2.1 术语2.2 项目经理的权力有5种来源2.3 优秀团 队的建设5个阶段2.4 激励理论2.4.1 马斯洛需求层次理论2.4.2 赫茨伯格双因素理论&#xff1a;★★★2.4.3 X理论&#xff08;不好&#xff09;步丫理论&…

一些真实的app渗透与算法hook

app1 apk文件下载到电脑&#xff0c;adb install 安装到真机上&#xff0c;打开是一个注册页面 真机把SocksDroid打开&#xff0c;随便输个电话号&#xff0c;电脑开charles抓包&#xff1a; 我们放到burp重发器里&#xff0c;改参数重发&#xff0c;不出意外&#xff0c;果然…

低代码开发平台的优点和缺点

随着数字化转型的加速&#xff0c;企业需要更快速地开发和交付应用程序&#xff0c;以适应市场需求和客户需求的变化。在这种情况下&#xff0c;低代码平台成为了企业的首选方案之一。 想象一下&#xff0c;你可以用一个可视化工具构建自己的应用程序&#xff0c;而无需编写繁琐…

面试官:Vue3.0 性能提升主要是通过哪几方面体现的?

&#x1f3ac; 岸边的风&#xff1a;个人主页 &#x1f525; 个人专栏 :《 VUE 》 《 javaScript 》 ⛺️ 生活的理想&#xff0c;就是为了理想的生活 ! 目录 一、编译阶段 diff算法优化 静态提升 事件监听缓存 SSR优化 二、源码体积 三、响应式系统 一、编译阶段 回顾…

jeecg-boot 基础使用

一 。 页面增加基础使用 先在数据库进行数据定义 然后在页面属性修改显示方式 保存 同步数据库 然后测试 没有问题 选取需要的数据然后生成代码 然后保存 效果 如果需要关联的话 视频 JeecgBoot低代码开发—零基础入门视频_哔哩哔哩_bilibili 文档 如何配置报表菜…