Usually those designate which country that soldier comes from. It is common to see personnel wearing different ones within one unit when it is a NATO deployment or with the UN. Other than that usually units all have the same flag patch because they are all from the same country.