The definitions I use in any posts about this topic:

Collaboration: working together for a common objective, often provided externally by a boss or customer.

Cooperation: sharing freely with no expectation of direct reciprocity.

Collaboration happens around some kind of plan or structure, while cooperation presumes the freedom of individuals to join and participate. Cooperation, not collaboration, is a driver of creativity. It is difficult to be creative while collaborating, because the objective has already been established.

When we know who we are working with (suppliers, partners, customers) then collaboration is optimal. But in networks, someone may be our supplier or even our boss one day and our customer the next, so cooperation becomes the best behaviour. In such a society, people can have multiple valences as nodes in many networks at the same time. Successful individuals in a network society will see that their connections change over time, and that openly sharing will make them more valued nodes in the long run. In networks, cooperation is simultaneously altruistic and selfish.