Are you
actually sending 100 Mbps data over the link, or is that just the
name/specification of the Ethernet connection?
Please explain what you mean by "5015 connector." If you look that up on Google, you will see at least half a dozen VERY DIFFERENT kinds of connectors claiming that name. Some of those are more conducive to impedance-critical, high-speed data connections.
The type of connector ("5015 connector" whatever that means?) says NOTHING about what cable you are talking about for 5m?
If you are sending only low-speed data, you might get away with any old cable for 5m. But if you are really talking about 100Mbps data rate, then you really need controlled-impedance (100

±5) cabling. That doesn't have to be Cat5 or Cat6, etc. But it does need to be 100

if you "want the data to work" at higher speeds.