| Algorithm 2: Asymmetric TCP/UDP Traffic |
|
Initialize: TCP/UDP Application connected to LiFi Interface Interface LiFi and WiFi Net Devices while 1 do If frame_size > MTU then continue end end Change dest MAC (LiFi AP) addr to WiFi AP MAC addr Change source MAC addr to LiFi User Device MAC addr Compute IP checksum Compute UDP/TCP checksum Send Packet to WiFi AP End |