Ipod charging problem: on and off

When I plug my ipod to charge it using the usb cable, it makes a sound that it is charging. After a minute, I hear the sound again, and it is not charging. After several minutes charging starts again. This cycle repeats at uneven intervals throughout the charging time. How can I get it to charge properly?
