A self-configuring router for data transfer arranged to determine a current location of where the router is located when different output ports become available, the router comprising: a first storage device arranged to store historic performance and configuration data including past data flows and previously observed settings for said current location useable to decide how to prioritize and shape the data transfer from the router; a data flow identifier arranged to read header information attached to the data transfer, the header information comprising information comprising a preferred output port for the data transfer; a configuration device coupled to the first storage device and arranged to configure the router, wherein the configuration device configures the router based on the historic performance and configuration data associated with the current location of the router; a data collector coupled to the data flow identifier, an analysis device and a traffic shaper of the configuration device, the data collector arranged to measure operational data of the router, wherein the data collector is arranged to receive statistics and data flow information collected by the data flow identifier and the traffic shaper, the statistics and data flow information including a data flow rate out of the router and by which output ports data is being sent at the current location; and the analysis device coupled to the data collector and the first storage device is arranged to receive and to review the statistics and data flow information and to determine which output port is best for the data transfer based on the historic performance and configuration data, and is arranged to analyze the operational data and determine new performance and new configuration data. a first storage device arranged to store historic performance and configuration data including past data flows and previously observed settings for said current location useable to decide how to prioritize and shape the data transfer from the router; a data flow identifier arranged to read header information attached to the data transfer, the header information comprising information comprising a preferred output port for the data transfer; a configuration device coupled to the first storage device and arranged to configure the router, wherein the configuration device configures the router based on the historic performance and configuration data associated with the current location of the router; a data collector coupled to the data flow identifier, an analysis device and a traffic shaper of the configuration device, the data collector arranged to measure operational data of the router, wherein the data collector is arranged to receive statistics and data flow information collected by the data flow identifier and the traffic shaper, the statistics and data flow information including a data flow rate out of the router and by which output ports data is being sent at the current location; and the analysis device coupled to the data collector and the first storage device is arranged to receive and to review the statistics and data flow information and to determine which output port is best for the data transfer based on the historic performance and configuration data, and is arranged to analyze the operational data and determine new performance and new configuration data.