At first I want to mention: I've already worked with the tutorials and spent times studying the models and other forums, but I really haven't found anything specific on my problem, so here it goes:
I'm trying to use ns-3, to set up a host and a client (which of course is pretty easy), which use TCP to interchange packages. Now the host has multiple representations of a multimedia file and the client uses some specific algorithm (details are not of interest here right now) to decide which file he's requesting from the host depending on available bandwidth.
My question is: how can I tell the host to use specific files in the directory for file transfer? The only possibility I've found (in the examples) is to just use arbitrary sample packets where I can only set the size and nothing more.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.
Just think about how a real system would work. Your client runs the specific algorithm that determines which file it needs, then he has to request that specific file from the server.
So, the solution is simple. Send a message requesting that file. The implementation could be different depending on your assumptions, for example you could simply send a packet with a number requesting the 10th file, or more elaborate requesting a file name.This part is and was already very clear to me.I'm very aware of how my problem has to be solved in general on an abstract level, but that's not the problem here.Like I said, I couldn't find it anywhere in the examples / documentation, how to specifically register a file at the host side - I'm looking for the data structure / needed functions for this. I've only ran into File Descriptor NetDevice - but this obviously is only used to model a device.