# New gateway: The Things Indoor Gateway

**URL:** <https://www.thethingsnetwork.org/forum/t/new-gateway-the-things-indoor-gateway/22049>\
**Category:** TTIG - The Things Indoor Gateway\
**Created:** [February 1, 2019, 12:05am UTC](https://www.thethingsnetwork.org/forum/t/new-gateway-the-things-indoor-gateway/22049 "2019-02-01T00:05:14Z")\
**Posts on this page:** 1\
**Showing post:** 682

<div class="post-metadata">

**Author:** ![pe\_t\_er](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/pe_t_er/32/25844_2.png) [@pe\_t\_er](https://www.thethingsnetwork.org/forum/u/pe_t_er)\
**Post date:** [June 25, 2019, 8:20am UTC](https://www.thethingsnetwork.org/forum/t/new-gateway-the-things-indoor-gateway/22049/682 "2019-06-25T08:20:47Z")

</div>

> [@KrishnaIyerEaswaran2](#):
>
> If there’s no traffic on your gateway for about 60s, the WebSocket(WS) connection to the network is dropped intentionally and the gateway will re-connect.

Wouldn’t it make sense to increase the WebSocket(WS) timeout to 5 or 10 minutes or to adjust it dynamically?

I noticed that it takes ~2 seconds when the packet was received by the TTIG till it starts a new WS connection and another second till the connection is established and the packet get’s send. If the packet is received by multiple gateways deduplication doesn’t work anymore and the packet shows up as “retry” in the TTN console. Also in conditions where rx packet frequency is between 1 to 10 minutes it might cause more load in the backend then leaving the session established…

**TTIG WS established → immediate transmit of the packet to TTN**  
07:12:43.703939 IP LorixOne.44329 \> 52.169.76.203.1700: RADIUS, Access-Request (1), id: 0x83 length: 243  
07:12:43.711171 IP IC880a-RPi.41703 \> 52.169.76.203.1700: RADIUS, Access-Request (1), id: 0x79 length: 243  
07:12:43.734337 IP TTIG.17829 \> 52.169.76.203.443: Flags [P.], seq 848:1221, ack 1814, win 5840, length 373#

**TTIG WS NOT established → 2 seconds till tcp connect:**  
07:13:45.816602 IP IC880a-RPi.41703 \> 52.169.76.203.1700: RADIUS, Access-Request (1), id: 0x0a length: 243  
07:13:45.818058 IP LorixOne.44329 \> 52.169.76.203.1700: RADIUS, Access-Request (1), id: 0x18 length: 243  
07:13:47.912911 IP TTIG.54858 \> 52.169.76.203.443: Flags [S], seq 73142392, win 5840, options [mss 1460], length 0

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/f/ff242d8396baf608e9a19dc740febcf45057e803.png)

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/new-gateway-the-things-indoor-gateway/22049)._
