Impact of IP Address Change on Session Continuity in (Web Browsing) and IoT (Connected Car)

:automobile: If a car is browsing the internet or using standard protocols like HTTP/TCP, the session disconnects immediately when the IP changes, and a new connection must be established.
:warning: This behavior is not suitable for IoT car applications, which require real-time, continuous connectivity.

:globe_showing_europe_africa: What happens in 5G networks when moving from MEC1 (Tripoli) to MEC2 (Misrata)?
If the car is browsing the internet (HTTP / HTTPS), it relies on standard TCP/IP.
When moving from MEC-1 to MEC-2, the following happens :backhand_index_pointing_down:
:small_blue_diamond: :one: At the 5G Core level:
β€’ The network detects that the car has left the first MEC area.
β€’ The SMF redirects the session to a new UPF in MEC-2 (Handover).
β€’ In some cases β€” especially inter-UPF handovers β€” the car’s IP address changes.
:small_blue_diamond: :two: What happens to the current session?
If the IP changes during browsing:
β€’ The ongoing TCP session is terminated immediately.
β€’ The browser or app must create a new connection.
β€’ As a result:
:small_orange_diamond: You may notice a temporary page freeze
:small_orange_diamond: Or an automatic page refresh
:warning: Reason: The TCP protocol binds the session to a specific IP and port.
If the IP changes, the session is considered completely new and cannot resume.

:small_orange_diamond: Summary:
β€’ During Intra-UPF Handover, the IP does not change, so the browsing session continues normally.
β€’ During Inter-UPF Handover (moving between MECs), the IP changes, causing the TCP session to break and restart.
:cross_mark: This behavior is unsuitable for IoT car applications, which require uninterrupted real-time data transmission.

:light_bulb: This is where MQTT becomes essential!
MQTT operates at the Application Layer, meaning the session does not depend on IP but on the Client ID.
It automatically reconnects to the broker after an IP change and ensures reliable message delivery using QoS mechanisms.
:satellite_antenna: In MQTT:
β€’ The client does not communicate directly with other clients β€” it connects to a Broker.
β€’ The client identifies itself using a Client ID, not an IP address.
β€’ The Broker maintains the session even if the client’s IP changes.
β€’ Although MQTT uses TCP for transport, connection management is based on Client ID, not IP.

:sport_utility_vehicle: Practical Example:
A car connected to a 5G network sends telemetry data to an MQTT Broker:
:one: The car connects to the broker (e.g., mqtt.example.com).
:two: It identifies itself with Client ID = Car123.
:three: When the car moves from MEC1 to MEC2 and its IP changes,
it reconnects to the same broker with the same Client ID.
:four: The broker recognizes it as the same client and keeps the session active (thanks to Session Persistence).

LinkedIn: :backhand_index_pointing_down: