}
public void sendDataToDevice(byte[] dataPayload, NetworkTree.Node destNode) throws IOException{
int destinationAddress = destNode.getAddress();
DataToDevice packet = new DataToDevice(destinationAddress, dataPayload);
byte[] packetBytes = packet.getRawBytes().array();
RootNode firstHop = destNode.getRouteToMyself();
firstHop.getNetInterface().sendLayer3Packet(packetBytes, firstHop.getMacAddress());
}