Table of Contents:

1.  Introduction

This feature is to filter the unwanted LoRaWAN packets. Purpose is to save the upstream traffic especially for a 4G cellular connection. If configured, gateway will process filter for below two types of message:

  • Unconfirmed Data Up
  • Confirmed Data Up

2.  FWD Filter Mechanism

Support Devices:

  • Firmware Version >  dragino-lgw--v5.4.1658824252
  • LG308, DLOS8, LPS8, LIG16, LG308N, DLOS8N, LPS8N

Filtering rules:

Fport FilterDevAddr Filter
Level 0Do nothingLevel 0Do nothing
Level 1Filter only the Fport in the listLevel 1Filter only the DevAddr in the list
Level 2Filter Fport that are not in the databaseLevel 2Filter DevAddr that are not in the database

image-20220726171434-6.png

Check if the filter is running

image-20220726164533-3.png

2.1  Filter By Fport

The Gateway FPort filter will check all the below LoRaWAN messages: Unconfirmed Data Up & Confirmed Data Up.

Important Notice:

  • By default, Fport Filter Level=0. which means do nothing
  • Fport Filter configured to Level=1. If the Fport in the list matches the Fport received by the gateway, it will be dropped.
  • Fport Filter configured to Level=2. If the Fport in the list does not match the Fport received by the gateway, it will be dropped.

If you want to forward only a certain Fport, use level=2 and add the desired fport in the Filter value textbox. Add Filter Value 0 to forward Join requests

image-20221129101012-1.png

In this case, we set Fport Filter Level=1 and add the filter (server | fport | 0), when the gateway receives a Lorawan packet with Fport=0, it will be dropped.

image-20220726165311-4.png

image-20220726170532-5.png

2.2  Filter By DevAddr

The Gateway DevAddr filter will check all the below LoRaWAN messages: Unconfirmed Data Up & Confirmed Data Up.

Important Notice:

  • By default, DevAddr Filter Level=0. which means do nothing
  • DevAddr Filter configured to Level=1. If the DevAddr in the list matches the DevAddr received by the gateway, it will be dropped.
  • DevAddr Filter configured to Level=2. If the DevAddr in the list does not match the DevAddr received by the gateway, it will be dropped.

In this case, we set DevAddr Filter Level=0 and add the filter (server | DevAddr | 12664787 ), when the gateway receives a Lorawan packet with DevAddr=12664787, it will be dropped.

image-20220726171555-7.png

image-20220726171808-8.png

If user need to set the Secondary LoRaWAN Server Packet Filter, the configuration is similar to that above.

 

3.  PKT_FWD Filter Mechanism

Support Devices:

  • Firmware Version > lgw--build-v5.4.1602379434-20201011-0926 Firmware Download
  • LG308, DLOS8
  • LPS8

Fport & DevAddr Filter

image-20220527150138-1.png

Check if the filter is running

image-20220527150222-2.png

3.1  Filter By Fport

The Gateway FPort filter will check all the below LoRaWAN message: Unconfirmed Data Up & Confirmed Data Up. If the packet's FPort doesn't match the FPort setting, it will be dropped.

By default , this value is 0 means can upstream all packets with any FPort. We can set to other FPort so specify only one FPort works.

image-20220527150303-3.png

In case we set the FPort filter to 45, and the End Node send a packet with Fport other than 45, it will be dropped.

3.2  Filter By DevAddr

Gateway will use a DevAddr mask to check if the Unconfirmed Data Up & Confirmed Data Up packets match the mask . If not, gateway will drop it.

image-20220527150404-4.png

This screenshot shows packets is dropped if DevAddr mask doesn't match.

 

Tags:
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0