How can I send user defined data in CBR connection in ns2 ,when cbr agents are attached to nodes and sending packets of particular size how can i send data with it (user defined data)?
You need to create a data source file of the user defined data, including the packet content and packet length. Then, in the implementation process , NS-2 will read these data , and send out packets. You can refer to the multimedia communication examples in NS-2 environment. The principle is the same.