According to EA support pages, you need to open these ports on your router to your computer:
TCP
80
443
8443
13505
18390
18395
UDP
1000
18395
I opened them and my lag decreased significantly, and overall game play was better.
If you don't know how to do that, or need help, just message me on steam, it's not hard, but some people don't know.