A method includes generating a first DM-RS for V2X communication and a second DM-RS for V2X communication, the first DM-RS for V2X communication being mapped in a first symbol in a first slot of a subframe, the second DM-RS for V2X communication being mapped in a second symbol in the first slot; generating a third DM-RS for V2X communication and a fourth DM-RS for V2X communication, the third DM-RS for V2X communication being mapped in a first symbol in a second slot of the subframe, the fourth DM-RS for V2X communication being mapped in a second symbol in the second slot; and transmitting the first DM-RS for V2X communication, the second DM-RS for V2X communication, the third DM-RS for V2X communication, and the fourth DM-RS for V2X communication. The first DM-RS is generated based on a first group-hopping, and the second DM-RS is generated based on a second group-hopping.