华为配置车地通信快速切换实验

配置车地通信快速切换示例

组网图形

图1 配置车地通信快速切换业务示意图
  • 组网需求
  • 配置思路
  • 配置注意事项
  • 操作步骤
  • 配置文件
配置思路
  1. 配置地面网络,使轨旁AP和AC实现二层互通。
  2. 配置地面网络设备的组播服务,使地面网络可以正确转发组播数据。
  3. 配置轨旁AP和车载AP的车地通信快速切换功能,使车载AP可以和轨道沿线的轨旁AP通过Mesh链路对接。
  4. 配置车载网络,使车载网络内部数据互通。
  • 本配置举例中轨旁AP使用的是华为AP9131DN(FIT AP),车载AP是华为AP9131DN(FAT AP)。
  • 本配置举例中使用的交换机和路由器均为华为产品。
表1 为完成配置任务,需要获悉AP的以下数据。

AP

类型

MAC

轨旁AP(L1_001)

AP9131DN

00e0-fc59-1d10

轨旁AP(L1_003)

AP9131DN

00e0-fc59-1d20

轨旁AP(L1_010)

AP9131DN

00e0-fc59-1d30

轨旁AP(L1_150)

AP9131DN

00e0-fc59-1d40

轨旁AP(L1_160)

AP9131DN

00e0-fc59-1d50

轨旁AP(L1_170)

AP9131DN

00e0-fc59-1d60

……

车载AP(车头)

AP9131DN

00e0-fc59-2e10

车载AP(车尾)

AP9131DN

00e0-fc59-2e20

……

表2 为完成配置任务,需规划以下数据项。

配置项

数据

管理VLAN

VLAN 100

组播业务VLAN

VLAN 101

网关地址

AC的VLANIF 101的IP地址:10.23.224.1/24

DHCP服务器

AC作为DHCP服务器为轨旁AP和车载终端分配IP地址

AP的IP地址池

10.23.100.2~10.23.100.254/24

车载终端的IP地址池

10.23.224.4~10.23.224.254/24

AC的源接口IP地址

VLANIF 100:10.23.100.1/24

轨旁AP的AP组

名称:mesh-mpp

轨旁AP的AP ID

  • 轨旁AP(L1_001):1
  • 轨旁AP(L1_003):2
  • 轨旁AP(L1_010):3
  • 轨旁AP(L1_150):101
  • 轨旁AP(L1_160):102
  • 轨旁AP(L1_170):103

安全模板

  • 名称:sp01
  • 安全策略:WPA2+PSK+AES
  • 密码类型:PASS-PHRASE
  • 认证密钥:YsHsjx_202206

Mesh模板

轨旁AP:
  • 名称:mesh-net
  • 标识:mesh-net
车载AP:
  • 名称:mesh-net
  • 标识:mesh-net

Mesh快切模板

轨旁AP:

  • 名称:hand-over

车载AP:

  • 名称:hand-over

轨旁AP Mesh白名单

名称:whitelist01

根据实际情况,应添加该轨道上所有的车载AP的MAC。

车载AP Mesh白名单

名称:whitelist01

根据实际情况,应添加该轨道上所有的轨旁AP的MAC。

被代理地面设备MAC地址

  • 网关的MAC地址:00e0-fce9-d328
  • 网管用户的MAC地址:00e0-fc88-12cd
  • 组播源的MAC地址:00e0-fc88-b6ab

被代理车载设备MAC地址

  • 车载终端_1的MAC地址:00e0-fc88-d359
  • 车载终端_2的MAC地址:00e0-fc88-d270

组播服务的组播组

225.1.1.1~225.1.1.3

配置注意事项
操作步骤
  • 配置地面网络设备
    1. 配置AC,在AC上创建VLAN100、VLAN101、VLAN200,将接口GE0/0/1~GE0/0/4加入VLAN101,并允许VLAN101的报文通过,配置接口GE0/0/3和GE0/0/4的PVID为VLAN101。将接口GE0/0/5加入VLAN200,其PVID为VLAN200,允许VLAN200的报文通过。将接口GE0/0/1和GE0/0/2配置为允许VLAN100的报文通过。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd"><HUAWEI> <strong>system-view</strong>
      [HUAWEI] <strong>sysname AC</strong>
      [AC] <strong>vlan batch 100 101 200</strong>
      [AC] <strong>interface gigabitEthernet 0/0/1</strong>
      [AC-GigabitEthernet0/0/1] <strong>port link-type trunk</strong>
      [AC-GigabitEthernet0/0/1] <strong>port trunk allow-pass vlan 100 101</strong>
      [AC-GigabitEthernet0/0/1] <strong>quit</strong>
      [AC] <strong>interface gigabitEthernet 0/0/2</strong>
      [AC-GigabitEthernet0/0/2] <strong>port link-type trunk</strong>
      [AC-GigabitEthernet0/0/2] <strong>port trunk allow-pass vlan 100 101</strong>
      [AC-GigabitEthernet0/0/2] <strong>quit</strong>
      [AC] <strong>interface gigabitEthernet 0/0/3</strong>
      [AC-GigabitEthernet0/0/3] <strong>port link-type trunk</strong>
      [AC-GigabitEthernet0/0/3] <strong>port trunk pvid vlan 101</strong>
      [AC-GigabitEthernet0/0/3] <strong>port trunk allow-pass vlan 101</strong>
      [AC-GigabitEthernet0/0/3] <strong>quit</strong>
      [AC] <strong>interface gigabitEthernet 0/0/4</strong>
      [AC-GigabitEthernet0/0/4] <strong>port link-type trunk</strong>
      [AC-GigabitEthernet0/0/4] <strong>port trunk pvid vlan 101</strong>
      [AC-GigabitEthernet0/0/4] <strong>port trunk allow-pass vlan 101</strong>
      [AC-GigabitEthernet0/0/4] <strong>quit</strong>
      [AC] <strong>interface gigabitEthernet 0/0/5</strong>
      [AC-GigabitEthernet0/0/5] <strong>port link-type trunk</strong>
      [AC-GigabitEthernet0/0/5] <strong>port trunk pvid vlan 200</strong>
      [AC-GigabitEthernet0/0/5] <strong>port trunk allow-pass vlan 200</strong>
      [AC-GigabitEthernet0/0/5] <strong>quit</strong></span></span></span>
    2. 配置AC的接口VLANIF101的IP地址,并使能DHCP服务器功能为车载网络分配IP地址。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>dhcp enable</strong>
      [AC] <strong>interface vlanif 101</strong>
      [AC-Vlanif101] <strong>ip address 10.23.224.1 20</strong>
      [AC-Vlanif101] <strong>dhcp select interface</strong>
      [AC-Vlanif101] <strong>dhcp server excluded-ip-address 10.23.224.2 10.23.224.3</strong>
      [AC-Vlanif101] <strong>quit</strong></span></span></span>
    3. 配置AC的接口VLANIF100的IP地址,并使能DHCP服务器功能为轨旁AP分配IP地址。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>interface vlanif 100</strong>
      [AC-Vlanif100] <strong>ip address 10.23.100.1 20</strong>
      [AC-Vlanif100] <strong>dhcp select interface</strong>
      [AC-Vlanif100] <strong>quit</strong></span></span></span>
    4. 配置AC的接口VLANIF200的IP地址,并配置缺省路由下一跳地址为Router的接口GE1/0/0的IP地址,使车地通信网络发往外网的报文上送到出口路由Router。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>interface vlanif 200</strong>
      [AC-Vlanif200] <strong>ip address 10.23.200.2 24</strong>
      [AC-Vlanif200] <strong>quit</strong>
      [AC] <strong>ip route-static 0.0.0.0 0 10.23.200.1</strong></span></span></span>
    5. 配置Router的接口GE1/0/0的IP地址,并配置路由,配置到内网网段的报文下一跳为10.23.200.2。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd"><Huawei> <strong>system-view</strong>
      [Huawei] <strong>sysname Router</strong>
      [Router] <strong>interface gigabitethernet 1/0/0</strong>
      [Router-GigabitEthernet1/0/0] <strong>ip address 10.23.200.1 24</strong>
      [Router-GigabitEthernet1/0/0] <strong>quit</strong>
      [Router] <strong>ip route-static 10.23.224.0 20 10.23.200.2</strong>
      [Router] <strong>ip route-static 10.23.100.0 20 10.23.200.2</strong></span></span></span>

      用户需根据实际需求配置出口路由到外网的路由表以及出口路由的NAT功能,以保证内外网的正常访问。

    6. 配置Switch_B和Switch_C使轨旁AP和地面网络实现二层互通

      # 在Switch_B上创建VLAN100、VLAN101,并配置Switch_B的接口GE0/0/2允许VLAN100、VLAN101的报文通过。配置Switch_B的接口GE0/0/1允许VLAN100、VLAN101的报文通过,GE0/0/1的PVID为VLAN100(轨旁AP的管理VLAN)。

      Switch_B上连接其他轨旁AP的接口请参考GE0/0/1进行配置,配置接口允许VLAN100、VLAN101的报文通过,配置接口的PVID为VLAN100。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd"><HUAWEI> <strong>system-view</strong>
      [HUAWEI] <strong>sysname Switch_B</strong>
      [Switch_B] <strong>vlan batch 100 101</strong>
      [Switch_B] <strong>interface gigabitEthernet 0/0/2</strong>
      [Switch_B-GigabitEthernet0/0/2] <strong>port link-type trunk</strong>
      [Switch_B-GigabitEthernet0/0/2] <strong>port trunk allow-pass vlan 100 101</strong>
      [Switch_B-GigabitEthernet0/0/2] <strong>quit</strong>
      [Switch_B] <strong>interface gigabitEthernet 0/0/1</strong>
      [Switch_B-GigabitEthernet0/0/1] <strong>port link-type trunk</strong>
      [Switch_B-GigabitEthernet0/0/1] <strong>port trunk pvid vlan 100</strong>
      [Switch_B-GigabitEthernet0/0/1] <strong>port trunk allow-pass vlan 100 101</strong>
      [Switch_B-GigabitEthernet0/0/1] <strong>quit</strong></span></span></span>
      # 在Switch_C上创建VLAN100、VLAN101,并配置Switch_C的接口GE0/0/2允许VLAN100、VLAN101的报文通过。配置Switch_C的接口GE0/0/1允许VLAN100、VLAN101的报文通过,GE0/0/1的PVID为VLAN100。

      Switch_C上连接其他轨旁AP的接口请参考GE0/0/1进行配置,配置接口允许VLAN100、VLAN101的报文通过,配置接口的PVID为VLAN100。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd"><HUAWEI> <strong>system-view</strong>
      [HUAWEI] <strong>sysname Switch_C</strong>
      [Switch_C] <strong>vlan batch 100 101</strong>
      [Switch_C] <strong>interface gigabitEthernet 0/0/2</strong>
      [Switch_C-GigabitEthernet0/0/2] <strong>port link-type trunk</strong>
      [Switch_C-GigabitEthernet0/0/2] <strong>port trunk allow-pass vlan 100 101</strong>
      [Switch_C-GigabitEthernet0/0/2] <strong>quit</strong>
      [Switch_C] <strong>interface gigabitEthernet 0/0/1</strong>
      [Switch_C-GigabitEthernet0/0/1] <strong>port link-type trunk</strong>
      [Switch_C-GigabitEthernet0/0/1] <strong>port trunk pvid vlan 100</strong>
      [Switch_C-GigabitEthernet0/0/1] <strong>port trunk allow-pass vlan 100 101</strong>
      [Switch_C-GigabitEthernet0/0/1] <strong>quit</strong></span></span></span>
    7. 配置地面网络设备AC、Switch_B和Switch_C的二层组播功能,使AC、Switch_B和Switch_C可以正确转发组播数据。

      # 在AC上使能全局的IGMP Snooping功能。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>igmp-snooping enable</strong></span></span></span>

      # 使能AC的VLAN101的IGMP Snooping功能。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>vlan 101</strong>
      [AC-vlan101] <strong>igmp-snooping enable</strong>
      [AC-vlan101] <strong>quit</strong></span></span></span>

      # 配置AC的组播组过滤策略。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>acl 2000</strong>
      [AC-acl-basic-2000] <strong>rule permit source 225.1.1.1 0</strong>
      [AC-acl-basic-2000] <strong>rule permit source 225.1.1.2 0</strong>
      [AC-acl-basic-2000] <strong>rule permit source 225.1.1.3 0</strong>
      [AC-acl-basic-2000] <strong>quit</strong></span></span></span>

      # 在AC的VLAN101内应用组播组过滤策略。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>vlan 101</strong>
      [AC-vlan101] <strong>igmp-snooping group-policy 2000</strong>
      [AC-vlan101] <strong>quit</strong></span></span></span>

      请参照AC的组播配置过程完成Switch_B和Switch_C的组播配置。

      # 配置Switch_B和Switch_C的组播快速离开功能。

      如果轨旁AP和交换机直连且组播为二层组播,则可以配置组播快速离开功能,提高组播效率。如果轨旁AP和交换机非直连,或者交换机配置的是三层组播,则不能使能组播快速离开功能,否则会造成组播数据中断等异常。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[Switch_B] <strong>vlan 101</strong>
      [Switch_B-vlan101] <strong>igmp-snooping prompt-leave group-policy 2000</strong></span></span></span>
      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[Switch_C] <strong>vlan 101</strong>
      [Switch_C-vlan101] <strong>igmp-snooping prompt-leave group-policy 2000</strong></span></span></span>
    8. 配置AP组、国家码和AC的源接口

      # 创建轨旁AP的AP组“mesh-mpp”,用于将相同配置的轨旁AP都加入同一AP组中。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>wlan</strong>
      [AC-wlan-view] <strong>ap-group name mesh-mpp</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>quit</strong></span></span></span>

      # 创建域管理模板,在域管理模板下配置AC的国家码并在AP组下引用域管理模板。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>regulatory-domain-profile name domain1</strong>
      [AC-wlan-regulate-domain-domain1] <strong>country-code cn</strong>
      [AC-wlan-regulate-domain-domain1] <strong>quit</strong>
      [AC-wlan-view] <strong>ap-group name mesh-mpp</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>regulatory-domain-profile domain1</strong>
      Warning: This configuration change will clear the channel and power configurations of radios, and may restart APs. Continue?[Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b17491131153716">y</strong>  
      [AC-wlan-ap-group-mesh-mpp] <strong>quit</strong>
      [AC-wlan-view] <strong>quit</strong></span></span></span>

      # 配置AC的源接口。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong id="ZH-CN_TASK_0176929222__zh-cn_task_0176917789_b1007605707190941">capwap source interface vlanif 100</strong></span></span></span>
      # 将轨旁AP加入到AP组“mesh-mpp”中。

      ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC] <strong>wlan</strong>
      [AC-wlan-view] <strong>ap auth-mode mac-auth</strong>
      [AC-wlan-view] <strong>ap-id 1 ap-mac 00e0-fc59-1d10</strong>
      [AC-wlan-ap-1] <strong>ap-name L1_001</strong>
      [AC-wlan-ap-1] <strong>ap-group mesh-mpp</strong>
      Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1651706244190906">y</strong>  
      [AC-wlan-ap-1] <strong>quit</strong>
      [AC-wlan-view] <strong>ap-id 2 ap-mac 00e0-fc59-1d20</strong>
      [AC-wlan-ap-2] <strong>ap-name L1_003</strong>
      [AC-wlan-ap-2] <strong>ap-group mesh-mpp</strong>
      Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1651706244190906_1">y</strong>  
      [AC-wlan-ap-2] <strong>quit</strong>
      [AC-wlan-view] <strong>ap-id 3 ap-mac 00e0-fc59-1d30</strong>
      [AC-wlan-ap-3] <strong>ap-name L1_010</strong>
      [AC-wlan-ap-3] <strong>ap-group mesh-mpp</strong>
      Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1651706244190906_2">y</strong>  
      [AC-wlan-ap-3] <strong>quit</strong>
      [AC-wlan-view] <strong>ap-id 101 ap-mac 00e0-fc59-1d40</strong>
      [AC-wlan-ap-101] <strong>ap-name L1_150</strong>
      [AC-wlan-ap-101] <strong>ap-group mesh-mpp</strong>
      Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1651706244190906_3">y</strong>  
      [AC-wlan-ap-101] <strong>quit</strong>
      [AC-wlan-view] <strong>ap-id 102 ap-mac 00e0-fc59-1d50</strong>
      [AC-wlan-ap-102] <strong>ap-name L1_160</strong>
      [AC-wlan-ap-102] <strong>ap-group mesh-mpp</strong>
      Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1651706244190906_4">y</strong>  
      [AC-wlan-ap-102] <strong>quit</strong>
      [AC-wlan-view] <strong>ap-id 103 ap-mac 00e0-fc59-1d60</strong>
      [AC-wlan-ap-103] <strong>ap-name L1_170</strong>
      [AC-wlan-ap-103] <strong>ap-group mesh-mpp</strong>
      Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? [Y/N]:<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1651706244190906_5">y</strong>  
      [AC-wlan-ap-103] <strong>quit</strong></span></span></span>
    9. 配置轨旁AP的上行有线口允许携带VLAN101的报文通过。

      # 配置有线口模板“wired-port”,以tagged方式加入VLAN101。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>wired-port-profile name wired-port</strong>
      [AC-wlan-wired-port-wired-port] <strong>vlan tagged 101</strong>
      [AC-wlan-wired-port-wired-port] <strong>quit</strong></span></span></span>

      # 配置AP组“mesh-mpp”引用有线口模板“wired-port”。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>ap-group name mesh-mpp</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>wired-port-profile wired-port gigabitethernet 0</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>quit</strong></span></span></span>
    10. 配置Mesh参数

      # 创建名称为whitelist01的Mesh白名单,并将车载AP的MAC地址添加Mesh白名单中。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>mesh-whitelist name whitelist01</strong>
      [AC-wlan-mesh-whitelist-whitelist01] <strong>peer-ap mac 00e0-fc59-2e10</strong>
      [AC-wlan-mesh-whitelist-whitelist01] <strong>peer-ap mac 00e0-fc59-2e20</strong>
      [AC-wlan-mesh-whitelist-whitelist01] <strong>quit</strong></span></span></span>

      请参照以上配置步骤将其他列车的车载AP的MAC地址加入Mesh白名单whitelist01中。

      # 配置Mesh链路使用的安全模板“sp01”,Mesh仅支持WPA2+PSK+AES的安全策略。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>security-profile name sp01</strong>
      [AC-wlan-sec-prof-sp01] <strong>security wpa2 psk pass-phrase YsHsjx_202206 aes</strong>
      [AC-wlan-sec-prof-sp01] <strong>quit</strong></span></span></span>

      # 配置Mesh角色。配置轨旁的Mesh角色为“mesh-portal”,Mesh角色是通过AP系统模板配置的。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>ap-system-profile name mesh-sys</strong>
      [AC-wlan-ap-system-prof-mesh-sys] <strong>mesh-role mesh-portal</strong>
      [AC-wlan-ap-system-prof-mesh-sys] <strong>quit</strong></span></span></span>

      # 配置Mesh快切模板“hand-over”,并使能基于位置信息的快切算法。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>mesh-handover-profile name hand-over</strong>
      [AC-wlan-mesh-handover-hand-over] <strong>location-based-algorithm enable</strong>
      [AC-wlan-mesh-handover-hand-over] <strong>quit</strong></span></span></span>

      # 配置Mesh模板。配置Mesh网络的ID为“mesh-net”,并引用安全模板和Mesh快切模板。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>mesh-profile name mesh-net</strong>
      [AC-wlan-mesh-prof-mesh-net] <strong>mesh-id mesh-net</strong>
      [AC-wlan-mesh-prof-mesh-net] <strong>security-profile sp01</strong>
      [AC-wlan-mesh-prof-mesh-net] <strong>mesh-handover-profile hand-over</strong>
      [AC-wlan-mesh-prof-mesh-net] <strong>quit</strong></span></span></span>
    11. 配置Mesh参数在轨旁AP射频上生效

      # 配置轨旁AP使用的射频和信道,并引用Mesh白名单、Mesh模板和AP系统模板。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>ap-group name mesh-mpp</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>ap-system-profile mesh-sys</strong>
      Warning: This action may cause service interruption. Continue?[Y/N]<strong>y</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>radio 1</strong>
      [AC-wlan-group-radio-mesh-mpp/1] <strong>channel 40mhz-plus 157</strong>
      Warning: This action may cause service interruption. Continue?[Y/N]<strong id="ZH-CN_TASK_0176929222__zh-cn_task_0175818418_b1384307436190906">y</strong> 
      [AC-wlan-group-radio-mesh-mpp/1] <strong>mesh-whitelist-profile whitelist01</strong>
      [AC-wlan-group-radio-mesh-mpp/1] <strong>mesh-profile mesh-net</strong>
      [AC-wlan-group-radio-mesh-mpp/1] <strong>quit</strong>
      [AC-wlan-ap-group-mesh-mpp] <strong>quit</strong></span></span></span>
  • 配置车载网络设备

    本例给出车载AP(车头)的详细配置步骤,车载AP(车尾)的配置请参照车头车载AP的配置步骤进行配置。

    1. 在车载AP上创建VLAN101,并配置车载AP的接口GE0/0/0允许VLAN101的报文通过,且其PVID也为VLAN101。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd"><Huawei> <strong>system-view</strong>
      <Huawei> <strong>sysname AP</strong>
      [AP] <strong>vlan batch 101</strong>
      [AP] <strong>interface gigabitethernet 0/0/0</strong>
      [AP-GigabitEthernet0/0/0] <strong>port link-type trunk</strong>
      [AP-GigabitEthernet0/0/0] <strong>port trunk pvid vlan 101</strong>
      [AP-GigabitEthernet0/0/0] <strong>port trunk allow-pass vlan 101</strong>
      [AP-GigabitEthernet0/0/0] <strong>quit</strong></span></span></span>
    2. 配置车载AP与轨旁AP之间车地通信快速切换的参数。

      # 配置Mesh链路使用的安全模板“sp01”,“sp01”的安全策略为WPA2+PSK+AES。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP] <strong>wlan</strong>
      [AP-wlan-view] <strong>security-profile name sp01</strong>
      [AP-wlan-sec-prof-sp01] <strong>security wpa2 psk pass-phrase YsH_2022 aes</strong>  //psk需要与轨旁AP的保持一致
      [AP-wlan-sec-prof-sp01] <strong>quit</strong></span></span></span>

      # 配置Mesh快切模板“hand-over”,并使能基于位置信息的快切算法,算法方向参数配置为“forward”。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP-wlan-view] <strong>mesh-handover-profile name hand-over</strong>
      [AP-wlan-mesh-handover-hand-over] <strong>location-based-algorithm enable moving-direction forward </strong>
      [AP-wlan-mesh-handover-hand-over] <strong>quit</strong></span></span></span>

      本例中车尾的车载AP需配置车载AP运行方向为backward

      # 配置Mesh模板。配置Mesh网络的ID为“mesh-net”,并引用安全模板和Mesh快切模板。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP-wlan-view] <strong>mesh-profile name mesh-net</strong>
      [AP-wlan-mesh-prof-mesh-net] <strong>mesh-id mesh-net</strong>
      [AP-wlan-mesh-prof-mesh-net] <strong>security-profile sp01</strong>
      [AP-wlan-mesh-prof-mesh-net] <strong>mesh-handover-profile hand-over</strong>
      [AP-wlan-mesh-prof-mesh-net] <strong>quit</strong></span></span></span>
    3. 配置车载AP与车辆段AP之间的Mesh参数

      # 配置Mesh模板。配置Mesh网络的ID为“mesh-net”,引用安全模板并开启Mesh客户端模式。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP-wlan-view] <strong>mesh-profile name mesh-client</strong>
      [AP-wlan-mesh-prof-mesh-client] <strong>mesh-id mesh-net</strong>
      [AP-wlan-mesh-prof-mesh-client] <strong>security-profile sp01</strong>
      [AP-wlan-mesh-prof-mesh-client] <strong>client-mode enable</strong>
      [AP-wlan-mesh-prof-mesh-client] <strong>quit</strong>
      [AP-wlan-view] <strong>quit</strong></span></span></span>
    4. 配置Mesh参数在车载AP射频上生效

      # 配置车载AP使用的射频和信道,并引用Mesh模板。

      • V200R019C00及之前版本:
        <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP] <strong>interface wlan-radio 0/0/1</strong>
        [AP-Wlan-Radio0/0/1] <strong>channel 40mhz-plus 157 </strong>
        [AP-Wlan-Radio0/0/1] <strong>mesh-profile mesh-net</strong>
        [AP-Wlan-Radio0/0/1] <strong>quit</strong></span></span></span>
      • V200R019C10及之后版本:
        <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP] <strong>wlan</strong>
        [AP-wlan-view] <strong>ap-id 0</strong>
        [AP-wlan-ap-0] <strong>radio 1</strong>
        [AP-wlan-radio-0/1] <strong>calibrate auto-channel-select disable</strong>
        [AP-wlan-radio-0/1] <strong>calibrate auto-txpower-select disable</strong>
        [AP-wlan-radio-0/1] <strong>channel 40mhz-plus 157 </strong>
        [AP-wlan-radio-0/1] <strong>mesh-profile mesh-net index 0</strong>
        [AP-wlan-radio-0/1] <strong>mesh-profile mesh-client index 1</strong>
        [AP-wlan-radio-0/1] <strong>quit</strong>
        [AP-wlan-ap-0] <strong>quit</strong></span></span></span>

      # 请参照车载AP的射频1的配置步骤完成其他车载AP的配置,为其他车载AP创建Mesh型VAP。

    5. 在车载AP上添加被代理设备。

      # 添加被代理地面设备。将网关Switch_A、网管用户和组播源的MAC地址作为被代理地面设备在车载AP上添加。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP-wlan-view] <strong>mesh-proxy trackside-equip mac-address 707b-e8e9-d328 vlan 101</strong>
      [AP-wlan-view] <strong>mesh-proxy trackside-equip mac-address 286e-d488-12cd vlan 101</strong>
      [AP-wlan-view] <strong>mesh-proxy trackside-equip mac-address 286e-d488-b6ab vlan 101</strong></span></span></span>

      # 添加被代理车载设备。将车载终端的MAC地址作为被代理车载设备在车载AP上添加。

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP-wlan-view] <strong>mesh-proxy onboard-equip mac-address 286e-d488-d359 vlan 101</strong>
      [AP-wlan-view] <strong>mesh-proxy onboard-equip mac-address 286e-d488-d270 vlan 101</strong>
      [AP-wlan-view] <strong>quit</strong></span></span></span>
    6. 配置车载AP的IGMP Snooping功能。

      • V200R020C00及之前版本:
        <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP] <strong>igmp-snooping enable</strong>
        [AP] <strong>vlan 101</strong>
        [AP-vlan101] <strong>igmp-snooping enable</strong>
        [AP-vlan101] <strong>quit</strong>
        [AP] <strong>quit</strong></span></span></span>
      • V200R020C10及之后版本:
        <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AP] <strong>wlan</strong>
        [AP-wlan-view] <strong>wired-port-profile name wlan-wired</strong>
        [AP-wlan-wired-port-wlan-wired] <strong>igmp-snooping enable</strong>
        [AP-wlan-wired-port-wlan-wired] <strong>quit</strong>
        [AP-wlan-view] <strong>ap-id 0</strong>
        [AP-wlan-ap-0] <strong>wired-port-profile wlan-wired gigabitethernet 0</strong>
        [AP-wlan-ap-0] <strong>quit</strong>
        [AP-wlan-view] <strong>quit</strong>
        [AP] <strong>quit</strong></span></span></span>
  • 验证配置结果

    # 完成车地通信快速切换的业务部署后,在AC上通过执行命令display wlan mesh link all,可以查看轨旁AP和车载AP建立的Mesh链接。

    <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd"><AC> <strong>display wlan mesh link all</strong>
    Rf   : radio ID             Dis  : coverage distance(100m)
    Ch   : channel              Per  : drop percent(%)
    TSNR : total SNR(dB)        P-   : peer
    Mesh : Mesh mode            Re   : retry ratio(%)
    RSSI : RSSI(dBm)            MaxR : max RSSI(dBm)
    ----------------------------------------------------------------------------------------------------------------------------------
    APName          P-APName        P-APMAC         Rf Dis   Ch      Mesh    P-Status        RSSI  MaxR  Per  Re   TSNR  SNR(Ch0~3:dB)
    Tx(Mbps)    Rx(Mbps)
    ----------------------------------------------------------------------------------------------------------------------------------
    L1_001          AP              00e0-fc59-2e10  1  3     157     portal  -               -51   -38   0    0    47    39/47/-/-
    192         192  
    L1_003          AP              00e0-fc59-2e10  1  3     157     portal  -               -59   -7    0    0    50    19/14/37/-
    192         192  
    L1_010          AP              00e0-fc59-2e10  1  3     157     portal  -               -45   -33   0    0    37    20/17/17/-
    192         192  
    L1_150          AP              00e0-fc59-2e10  1  3     157     portal  -               -54   -39   0    0    46    34/43/-/-
    192         192  
    L1_160          AP              00e0-fc59-2e10  1  3     157     portal  -               -52   -7    0    0    32    21/18/35/-
    192         192  
    L1_170          AP              00e0-fc59-2e10  1  3     157     portal  -               -42   -33   0    0    29    26/14/19/-
    192         192  
    ----------------------------------------------------------------------------------------------------------------------------------
    Total: 6</span></span></span>

    # 完成车地通信快速切换的业务部署后,在AC上通过执行命令display mesh-neighbor-rssi,可以查看轨旁AP的场强收集结果。

    <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">[AC-wlan-view] <strong>display mesh-neighbor-rssi</strong>
    AP name/MAC/Radio/Location-ID  Neighbor AP/MAC/Location-ID  RSSI  Update Time   
    ------------------------------------------------------------------------------  
    L1_001/00e0-fc59-1d10/1/1        -/00e0-fc3f-e900/-           -44   18:08:21    
    L1_003/00e0-fc59-1d20/1/3        -/00e0-fc3f-e900/-           -50   18:08:20    
    L1_010/00e0-fc59-1d30/1/10       -/00e0-fc3f-e900/-           -28   18:08:21    
    L1_150/00e0-fc59-1d40/1/150      -/00e0-fc59-2e10/-           -43   18:08:20    
    L1_160/00e0-fc59-1d50/1/160      -/00e0-fc59-2e10/-           -47   18:08:21    
    L1_170/00e0-fc59-1d60/1/170      -/00e0-fc59-2e10/-           -38   18:08:21    
    ------------------------------------------------------------------------------  
    Total: 6</span></span></span>
配置文件
  • 地面网络设备

    • Router的配置文件

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">#
      sysname Router
      #
      interface GigabitEthernet1/0/0ip address 10.23.200.1 255.255.255.0
      #
      ip route-static 10.23.100.0 255.255.240.0 10.23.200.2
      ip route-static 10.23.224.0 255.255.240.0 10.23.200.2
      #
      return
      </span></span></span>
    • Switch_B的配置文件

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">#
      sysname Switch_B
      #vlan batch 100 to 101
      #
      igmp-snooping enable
      #
      vlan 101igmp-snooping enableigmp-snooping group-policy 2000igmp-snooping prompt-leave group-policy 2000
      #
      acl number 2000rule 5 permit source 225.1.1.1 0rule 10 permit source 225.1.1.2 0rule 15 permit source 225.1.1.3 0
      #
      interface GigabitEthernet0/0/1port link-type trunkport trunk pvid vlan 100port trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/3port link-type trunkport trunk pvid vlan 100port trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/4port link-type trunkport trunk pvid vlan 100port trunk allow-pass vlan 100 to 101
      #
      return
      </span></span></span>
    • Switch_C的配置文件

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">#
      sysname Switch_C
      #vlan batch 100 to 101
      #
      igmp-snooping enable
      #
      vlan 101igmp-snooping enableigmp-snooping group-policy 2000igmp-snooping prompt-leave group-policy 2000
      #
      acl number 2000rule 5 permit source 225.1.1.1 0rule 10 permit source 225.1.1.2 0rule 15 permit source 225.1.1.3 0
      #
      interface GigabitEthernet0/0/1port link-type trunkport trunk pvid vlan 100port trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/3port link-type trunkport trunk pvid vlan 100port trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/4port link-type trunkport trunk pvid vlan 100port trunk allow-pass vlan 100 to 101
      #
      return
      </span></span></span>
    • AC的配置文件

      <span style="color:#333333"><span style="background-color:#ffffff"><span style="background-color:#dddddd">#
      sysname AC
      #
      vlan batch 100 to 101 200
      #
      igmp-snooping enable
      #
      dhcp enable
      #
      acl number 2000rule 5 permit source 225.1.1.1 0rule 10 permit source 225.1.1.2 0rule 15 permit source 225.1.1.3 0
      #
      vlan 101igmp-snooping enableigmp-snooping group-policy 2000
      #
      interface Vlanif100ip address 10.23.100.1 255.255.240.0dhcp select interface
      #
      interface Vlanif101ip address 10.23.224.1 255.255.240.0dhcp select interfacedhcp server excluded-ip-address 10.23.224.2 10.23.224.3
      #
      interface Vlanif200ip address 10.23.200.2 255.255.255.0
      #
      interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 100 to 101
      #
      interface GigabitEthernet0/0/3port link-type trunkport trunk pvid vlan 101port trunk allow-pass vlan 101
      #
      interface GigabitEthernet0/0/4port link-type trunkport trunk pvid vlan 101port trunk allow-pass vlan 101
      #
      interface GigabitEthernet0/0/5port link-type trunkport trunk pvid vlan 200port trunk allow-pass vlan 200
      #
      ip route-static 0.0.0.0 0.0.0.0 10.23.200.1
      #
      capwap source interface vlanif100
      #
      wlansecurity-profile name sp01security wpa2 psk pass-phrase %^%#g^Rs#om$z!uIXX;5P9W.#&g;"F4a6[$CJ$w2s]bhH%^%# aesmesh-handover-profile name hand-overlocation-based-algorithm enablemesh-whitelist-profile name whitelist01peer-ap mac 00e0-fc59-2e10peer-ap mac 00e0-fc59-2e20mesh-profile name mesh-netmesh-handover-profile hand-oversecurity-profile sp01mesh-id mesh-netregulatory-domain-profile name domain1ap-system-profile name mesh-sysmesh-role mesh-portalwired-port-profile name wired-portvlan tagged 101ap-group name mesh-mppap-system-profile mesh-syswired-port-profile wired-port gigabitethernet 0regulatory-domain-profile domain1radio 1mesh-profile mesh-netmesh-whitelist-profile whitelist01channel 40mhz-plus 157ap-id 1 ap-mac 00e0-fc59-1d10ap-name L1_001ap-group mesh-mppap-id 2 ap-mac 00e0-fc59-1d20ap-name L1_003ap-group mesh-mppap-id 3 ap-mac 00e0-fc59-1d30ap-name L1_010ap-group mesh-mppap-id 101 ap-mac 00e0-fc59-1d40ap-name L1_150ap-group mesh-mppap-id 102 ap-mac 00e0-fc59-1d50ap-name L1_160ap-group mesh-mppap-id 103 ap-mac 00e0-fc59-1d60ap-name L1_170ap-group mesh-mpp
      #
      return</span></span></span>
  • 车载网络设备

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

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

相关文章

【前端】实现Vue组件页面跳转的多种方式

目录 前言1. 内嵌2. 跳转新页面2.1 Demo12.2 Demo22.3 Demo3 3. 拓展 前言 通过某个Button让页面多种方式跳转 1. 内嵌 想要在Vue应用中内嵌一个外部网页&#xff0c;可以使用<iframe>标签 下面是一个示例&#xff1a; <template><div><!-- 在这里嵌入…

阿里云游戏服务器租用价格表,2024最新报价

阿里云游戏服务器租用价格表&#xff1a;4核16G服务器26元1个月、146元半年&#xff0c;游戏专业服务器8核32G配置90元一个月、271元3个月&#xff0c;阿里云服务器网aliyunfuwuqi.com分享阿里云游戏专用服务器详细配置和精准报价&#xff1a; 阿里云游戏服务器租用价格表 阿…

ASP.NET Core 7 MVC 使用 Ajax 和控制器通信

ASP.NET Core MVC中&#xff0c;如果前端使用ajax访问后端&#xff0c;后端的代码可以直接使用控制器&#xff0c;控制器返回值建议JSON格式&#xff0c;利用POST参数做一些验证传值 前端代码&#xff1a; $.ajax({url: "Test",type: "POST",data: {"…

【C++修行之道】(引用、函数提高)

目录 一、引用 1.1引用的基本使用 1.2 引用注意事项 1.3 引用做函数参数 1.4 引用做函数返回值 1.5 引用的本质 1.6 常量引用 1.7引用和指针的区别 二、函数提高 2.1 函数默认参数 2.2函数占位参数 2.3 函数重载 2.4函数重载注意事项 一、引用 1.1引用的基本使用 …

【RT-DETR进阶实战】利用RT-DETR进行视频划定区域目标统计计数

👑欢迎大家订阅本专栏,一起学习RT-DETR👑 一、本文介绍 Hello,各位读者,最近会给大家发一些进阶实战的讲解,如何利用RT-DETR现有的一些功能进行一些实战, 让我们不仅会改进RT-DETR,也能够利用RT-DETR去做一些简单的小工作,后面我也会将这些功能利用PyQt或者是…

备战蓝桥杯---搜索(完结篇)

再看一道不完全是搜索的题&#xff1a; 解法1&#xff1a;贪心并查集&#xff1a; 把冲突事件从大到小排&#xff0c;判断是否两个在同一集合&#xff0c;在的话就返回&#xff0c;不在的话就合并。 下面是AC代码&#xff1a; #include<bits/stdc.h> using namespace …

LeetCode-第28题-找出字符串中第一个匹配项的下标

1.题目描述 给你两个字符串 haystack 和 needle &#xff0c;请你在 haystack 字符串中找出 needle 字符串的第一个匹配项的下标&#xff08;下标从 0 开始&#xff09;。如果 needle 不是 haystack 的一部分&#xff0c;则返回 -1 。 2.样例描述 3.思路描述 可以让字符串 …

Apache Flink

前言 最近在学习室内融合定位服务架构&#xff0c;业务架构上&#xff0c;涵盖了数据采集、处理、状态管理、实时计算和告警等多个方面&#xff0c;但有些问题&#xff1a;这套系统中包含了大量的有状态计算&#xff0c;目前是通过自设计内存对象进行管理&#xff0c;并利用Re…

迎新年年终总结

迎新年年终总结 1、除夕迎新年登高有感 1、除夕迎新年登高有感 除旧岁&#xff0c;迎新年。凭栏立&#xff0c;意阑珊。 天空阔&#xff0c;世道艰。唯自强&#xff0c;可彼岸。 于2024年2月9日 10:51。

【前端web入门第四天】01 复合选择器与伪类选择器

文章目录: 1. 复合选择器 1.1 后代选择器 1.2 子代选择器 1.3 并集选择器1.4 交集选择器(了解) 2.伪类选择器 2.1 伪类-文本2.2 伪类-超链接&#xff08;拓展) 1. 复合选择器 什么叫复合选择器? 由两个或多个基础选择器&#xff0c;通过不同的方式组合而成。 复合选择器的作…

158基于matlab的用于分析弧齿锥齿轮啮合轨迹的程序

基于matlab的用于分析弧齿锥齿轮啮合轨迹的程序&#xff0c;输出齿轮啮合轨迹及传递误差。程序已调通&#xff0c;可直接运行。 158 matlab 弧齿锥齿轮啮合轨迹 传递误差 (xiaohongshu.com)

RedissonClient妙用-分布式布隆过滤器

目录 布隆过滤器介绍 布隆过滤器的落地应用场景 高并发处理 多个过滤器平滑切换 分析总结 布隆过滤器介绍 布隆过滤器&#xff08;Bloom Filter&#xff09;是1970年由布隆提出的。它实际上是一个很长的二进制向量和一系列随机映射函数。布隆过滤器可以用于检索一个元素是…

openssl3.2 - exp - RAND_bytes_ex

文章目录 openssl3.2 - exp - RAND_bytes_ex概述笔记END openssl3.2 - exp - RAND_bytes_ex 概述 生成随机数时, 要检查返回值是否成功, 不能认为一定是成功的(官方文档上有说明). 生成随机数的API, 和库上下文有关系, 使用RAND_bytes_ex()比RAND_bytes()好些. 笔记 /*! * …

SolidWorks的抽壳

抽壳在建模的时候是比较常见的要求&#xff0c;这里废话不多说&#xff0c;直接开始实例操作。 文章目录 一、规则实体抽壳2、多面抽壳3、空心化抽壳 二、椎体抽壳三、不规则实体抽壳1、不规则实体2、部分实体抽壳 文章随时可能更新&#xff0c;请关注文章原出处&#xff1a; …

LeetCode:210课程表Ⅱ(图论:拓扑排序判断是否有环)

做本题之前最好先做了LeetCode&#xff1a;207课程表&#xff0c;见本人另一篇博客http://t.csdnimg.cn/vSXgN 题目 现在你总共有 numCourses 门课需要选&#xff0c;记为 0 到 numCourses - 1。给你一个数组 prerequisites &#xff0c;其中 prerequisites[i] [ai, bi] &am…

sql常用函数积累(非窗口函数)

1.concat 在 SQL 中&#xff0c;concat函数用于将两个或多个字符串值连接成一个字符串 例如&#xff0c;如果有一个包含姓氏&#xff08;last_name&#xff09;和名字&#xff08;first_name&#xff09;的表&#xff0c;可以使用 CONCAT 来生成一个完整的姓名&#xff1a; …

JVM之GC垃圾回收

GC垃圾回收 如何判断对象可以回收 引用计数法 如果有对象引用计数加一&#xff0c;没有对象引用&#xff0c;计数减一&#xff0c;如果计数为零&#xff0c;则回收 但是如果存在循环引用&#xff0c;即A对象引用B对象&#xff0c;B对象引用A对象&#xff0c;会造成内存泄漏 可…

Gitlab和Jenkins集成 实现CI (二)

Gitlab和Jenkins集成 实现CI (一) Gitlab和Jenkins集成 实现CI (二) Gitlab和Jenkins集成 实现CI (三) 配置Gitlab api token 配置 Gitlab 进入gitlab #mermaid-svg-t84fR8wrT4sB4raQ {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:…

【芯片设计- RTL 数字逻辑设计入门 6 -- 带同步复位的D触发器 RTL实现及testbench 验证】

文章目录 带同步复位的D触发器Verilog 代码testbench 代码编译及仿真问题小结 带同步复位的D触发器 同步复位 &#xff1a;复位只能发生在在clk信号的上升沿&#xff0c;若clk信号出现问题&#xff0c;则无法进行复位。 Verilog 代码 // timescale ins/1nsmodule flopr (inpu…

第60讲公共Tabs组件封装

新建Tabs组件 Tabs.wxml <view class"tabs"><view class"tabs_title"><viewbindtap"handleItemTap"data-index"{{index}}"wx:for"{{tabs}}"wx:key"id"class"title_item {{item.isActive?ac…