Changes for page Filter unwanted LoRaWAN packets
Last modified by Kilight Cao on 2024/05/17 10:07
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -13,122 +13,135 @@ 13 13 * Unconfirmed Data Up 14 14 * Confirmed Data Up 15 15 16 -= **2. PKT_FWD Filter Mechanism** = 17 17 17 += **2. FWD Filter Mechanism** = 18 18 19 + 19 19 (% class="wikigeneratedid" id="H1.1SupportDevices" %) 20 20 **Support Devices:** 21 21 22 -* Firmware Version >** lgw~-~-build-v5.4.1602379434-20201011-0926** [[Firmware Download>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 23 -* LG308, DLOS8 24 -* LPS8 23 +* Firmware Version >** dragino-lgw~-~-v5.4.1658822655** [[Firmware Download>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 24 +* LG308, DLOS8,LPS8,LIG16,LG308N,DLOS8N,LPS8N 25 25 26 -Fport & DevAddr Filter 27 27 28 - [[image:image-20220527150138-1.png]]27 +**Filtering rules:** 29 29 29 +(% border="1" style="background-color:#ffffcc; color:green; width:937.222px" %) 30 +|=(% colspan="2" style="width: 724px;" %)Fport Filter|=(% colspan="2" style="width: 724px;" %)DevAddr Filter 31 +|(% style="width:329px" %)**Level 0**|(% style="width:329px" %)Do nothing|(% style="width:329px" %)**Level 0**|(% style="width:329px" %)Do nothing 32 +|(% style="width:329px" %)**Level 1**|(% style="width:329px" %)Filter only the Fport in the list|(% style="width:329px" %)**Level 1**|(% style="width:329px" %)Filter only the DevAddr in the list 33 +|(% style="width:329px" %)**Level 2**|(% style="width:329px" %)Filter Fport that are not in the database|(% style="width:329px" %)**Level 2**|(% style="width:329px" %)Filter DevAddr that are not in the database 30 30 31 -Check if the filter is running 35 +((( 36 +[[image:image-20220726171434-6.png||height="628" width="692"]] 32 32 33 -[[image:image-20220527150222-2.png||height="379" width="1062"]] 34 34 39 +**Check if the filter is running** 35 35 41 +[[image:image-20220726164533-3.png||height="465" width="982"]] 36 36 37 37 38 38 == **2.1 Filter By Fport** == 39 39 40 40 41 -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.47 +The Gateway FPort filter will check all the below LoRaWAN messages: Unconfirmed Data Up & Confirmed Data Up. 42 42 43 -((( 44 -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. 45 -))) 46 46 47 - [[image:image-20220527150303-3.png]]50 +(% style="color:red" %)**Important Notice:** 48 48 52 +* By default, Fport Filter (% style="color:blue" %)**Level=0**(%%). which means do nothing 49 49 50 - Incase we set theFPortfilter to45,andtheEndNode sendapacketwith Fportotherthan 45, it will be dropped.54 +* Fport Filter configured to (% style="color:blue" %)**Level=1**(%%). If the Fport in the list matches the Fport received by the gateway, it will be dropped. 51 51 56 +* Fport Filter configured to (% style="color:blue" %)**Level=2**(%%). If the Fport in the list does not match the Fport received by the gateway, it will be dropped. 52 52 53 -== **2.2 Filter By DevAddr** == 54 54 59 +In this case, we set Fport Filter Level=0 and add the fileter (server | fport | 0), when the gateway receives a Lorawan packet with Fport=0, it will be dropped. 55 55 56 - Gateway will use a DevAddrmask to checkif the Unconfirmed Data Up & Confirmed Data Uppackets matchthemask . If not,gatewaywilldrop it.61 +[[image:image-20220726165311-4.png||height="718" width="798"]] 57 57 58 -[[image:image-20220527150404-4.png]] 59 59 64 +[[image:image-20220726170532-5.png]] 60 60 61 -This screenshot shows packets is dropped if DevAddr mask doesn't match. 62 62 67 += **2.1 Filter By DevAddr** = 63 63 64 -= **3. FWD Filter Mechanism** = 65 65 70 +The Gateway FPort filter will check all the below LoRaWAN messages: Unconfirmed Data Up & Confirmed Data Up. 66 66 67 -(% class="wikigeneratedid" id="H1.1SupportDevices" %) 68 -**Support Devices:** 69 69 70 -* Firmware Version >** dragino-lgw~-~-v5.4.1658822655** [[Firmware Download>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 71 -* LG308, DLOS8,LPS8,LIG16,LG308N,DLOS8N,LPS8N 73 +(% style="color:red" %)**Important Notice:** 72 72 73 -* *Filteringrules:**75 +* By default, DevAddr Filter (% style="color:blue" %)**Level=0**(%%). which means do nothing 74 74 75 -(% border="1" style="background-color:#ffffcc; color:green; width:937.222px" %) 76 -|=(% colspan="2" style="width: 724px;" %)Fport Filter|=(% colspan="2" style="width: 724px;" %)DevAddr Filter 77 -|(% style="width:329px" %)**Level 0**|(% style="width:329px" %)Do nothing|(% style="width:329px" %)**Level 0**|(% style="width:329px" %)Do nothing 78 -|(% style="width:329px" %)**Level 1**|(% style="width:329px" %)Filter only the Fport in the list|(% style="width:329px" %)**Level 1**|(% style="width:329px" %)Filter only the DevAddr in the list 79 -|(% style="width:329px" %)**Level 2**|(% style="width:329px" %)Filter Fport that are not in the database|(% style="width:329px" %)**Level 2**|(% style="width:329px" %)Filter DevAddr that are not in the database 77 +* DevAddr Filter configured to (% style="color:blue" %)**Level=1**(%%). If the DevAddr in the list matches the DevAddr received by the gateway, it will be dropped. 80 80 81 -((( 82 -[[image:image-20220726171434-6.png||height="628" width="692"]] 79 +* DevAddr Filter configured to (% style="color:blue" %)**Level=2**(%%). If the DevAddr in the list does not match the DevAddr received by the gateway, it will be dropped. 83 83 84 84 85 - **Checkifthe filteris running**82 +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. 86 86 87 -[[image:image-202207261 64533-3.png||height="465" width="982"]]84 +[[image:image-20220726171555-7.png||height="754" width="765"]] 88 88 89 89 90 - == **3.1 Filter By Fport** ==87 +[[image:image-20220726171808-8.png]] 91 91 92 92 93 - TheGatewayFPortfilterwill check allthebelowLoRaWANmessages:Unconfirmed Data Up & ConfirmedDataUp.90 +**If user need to set the Secondary LoRaWAN Server Packet Filter, the configuration is similar to that above.** 94 94 92 + 93 +))) 95 95 96 - (% style="color:red"%)**Important Notice:**95 += **3. PKT_FWD Filter Mechanism** = 97 97 98 -* By default, Fport Filter (% style="color:blue" %)**Level=0**, which means do nothing 99 99 100 -* Fport Filter configured to (% style="color:blue" %)**Level=1**. If the Fport in the list matches the Fport received by the gateway, it will be dropped. 98 +(% class="wikigeneratedid" id="H1.1SupportDevices" %) 99 +**Support Devices:** 101 101 102 -* Fport Filter configured to (% style="color:blue" %)**Level=2**. If the Fport in the list does not match the Fport received by the gateway, it will be dropped. 101 +* Firmware Version >** lgw~-~-build-v5.4.1602379434-20201011-0926** [[Firmware Download>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/LPS8/Firmware/Release/]] 102 +* LG308, DLOS8 103 +* LPS8 103 103 105 +Fport & DevAddr Filter 104 104 105 - In this case, we set Fport Filter Level=0and add the fileter (server | fport | 0), when thegateway receives a Lorawan packet with Fport=0, it will be dropped.107 +[[image:image-20220527150138-1.png]] 106 106 107 -[[image:image-20220726165311-4.png||height="718" width="798"]] 108 108 110 +Check if the filter is running 109 109 110 -[[image:image-20220 726170532-5.png]]112 +[[image:image-20220527150222-2.png||height="379" width="1062"]] 111 111 112 112 113 -== 3.1 Filter By DevAddr == 114 114 115 115 116 - TheGatewayFPort filterwillcheck all the below LoRaWAN messages: Unconfirmed Data Up& Confirmed DataUp.117 +== **3.1 Filter By Fport** == 117 117 118 118 119 - (%style="color:red"%)**ImportantNotice:**120 +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. 120 120 121 -* By default, DevAddr Filter (% style="color:blue" %)**Level=0**, which means do nothing 122 +((( 123 +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. 124 +))) 122 122 123 - * DevAddr Filter configured to (% style="color:blue" %)**Level=1**. If the DevAddrin the listmatches the DevAddr received by thegateway, it will be dropped.126 +[[image:image-20220527150303-3.png]] 124 124 125 -* DevAddr Filter configured to (% style="color:blue" %)**Level=2**. If the DevAddr in the list does not match the DevAddr received by the gateway, it will be dropped. 126 126 129 +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. 127 127 128 -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. 129 129 130 - [[image:image-20220726171555-7.png||height="754"width="765"]]132 +== **3.2 Filter By DevAddr** == 131 131 132 132 133 -[[image:image-20220726171808-8.png]] 135 +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. 136 + 137 +[[image:image-20220527150404-4.png]] 138 + 139 + 140 +This screenshot shows packets is dropped if DevAddr mask doesn't match. 141 + 142 + 143 += = 144 + 145 +((( 146 + 134 134 )))