Hi thanks for your help. as you asked, i did the UO trace and below are the results.
Host Name IP Address Hop Ping Time Ping Avg % Loss Pkts r/s Ping best/worst
broadcom.home 192.168.10.1 1 0ms 0ms 0% 101 / 101 0ms / 0ms
* Unknown Host * 182.183.128.1 2 5ms 6ms 0% 101 / 101 5ms / 29ms
* Unknown Host * 182.184.3.209 3 14ms 100% 0 / 101
* Unknown Host * 182.184.3.33 4 22ms 100% 0 / 100
10.253.4.120 10.253.4.120 5 22ms 100% 0 / 100
10.253.4.4 10.253.4.4 6 23ms 100% 0 / 100
* Unknown Host * 0.0.0.0 7 0ms
be3093.ccr42.par01.atlas.cogentco130.117.50.165 8 128ms 128ms 0% 100 / 100 127ms / 155ms
ae-4.edge7.Paris1.Level3.net 4.68.39.73 9 135ms 100% 0 / 100
* Unknown Host * 0.0.0.0 10 0ms
* Unknown Host * 4.79.23.202 11 213ms 100% 0 / 100
* Unknown Host * 159.153.92.10 12 213ms 213ms 0% 100 / 100 213ms / 225ms
* Unknown Host * 159.153.92.78 13 213ms 222ms 0% 100 / 100 213ms / 289ms
bfbc2-ps3.gos.ea.com 159.153.64.173 14 213ms 213ms 0% 100 / 100 212ms / 224ms
Things to keep in note
1. I am having code:net error since 1 week every game and apex is unplayable
2. i am not the only player who has this issue but all the players from pakistan who i talked to have this issue
3. other games are working fine
4. i tried all the trouble shooting steps including flush dns and changing dns also windows clean boot