The question you ask is a common scenario. Our school liaison officers dread Monday morning when the kids march into their offices and talk about what happened over the weekend.
In the example you provide of text messages and threats conveyed that way, sometimes we don't have a name. The person is anonymous, but we may have that IP address, which as mentioned earlier, may come from one provider. Then we can use the provisions under the new Bill C-13 to quickly and nimbly get a production order for tracking where that originated and eventually we come back to a suspect. Once we have that suspect—it could be a predator based in California—we would then engage in an international investigation using multilateral assistance.
However, It may be just a classmate, and the victim had no idea who it was. For us to quickly identify that person allows us to intervene to stop it from happening. Quite often a warning is sufficient. If it is more serious and involves intimate images, again, we now have the ability to lay not as serious a charge as child pornography distribution, but the new provisions in Bill C-13.