A method comprising: obtaining, by a client device via a wireless data link with a wireless access point, information from a network device within a data network reachable via the wireless access point, the information describing network conditions associated with a service provided to the client device via the data network; and the client device optimizing a transmission control protocol, TCP, communication, via the wireless data link, for optimization of the service provided by the client device; wherein the network device is a serving gateway enforcing policies in the data network, the information including an identification of peering network agents (36, 40) in the data network and configured for responding to network context queries from the client device, enabling the client device to obtain respective network context responses from any one of the peering network agents (36, 40); and wherein the optimizing is based on the network context responses from the peering agents, and includes at least one of: adjusting one or more TCP parameters based on the network context responses from the peering agents (36, 40); adjusting flow control parameters in the transport layer stack; converting a TCP stream in the TCP communication into a Stream Control Transmission Protocol, SCTP, stream and adjusting associated parameters for flow control and congestion control; and sending a request to one of the peering network agents (36, 40) for more network resources. obtaining, by a client device via a wireless data link with a wireless access point, information from a network device within a data network reachable via the wireless access point, the information describing network conditions associated with a service provided to the client device via the data network; and the client device optimizing a transmission control protocol, TCP, communication, via the wireless data link, for optimization of the service provided by the client device; wherein the network device is a serving gateway enforcing policies in the data network, the information including an identification of peering network agents (36, 40) in the data network and configured for responding to network context queries from the client device, enabling the client device to obtain respective network context responses from any one of the peering network agents (36, 40); and wherein the optimizing is based on the network context responses from the peering agents, and includes at least one of: adjusting one or more TCP parameters based on the network context responses from the peering agents (36, 40); adjusting flow control parameters in the transport layer stack; converting a TCP stream in the TCP communication into a Stream Control Transmission Protocol, SCTP, stream and adjusting associated parameters for flow control and congestion control; and sending a request to one of the peering network agents (36, 40) for more network resources. adjusting one or more TCP parameters based on the network context responses from the peering agents (36, 40); adjusting flow control parameters in the transport layer stack; converting a TCP stream in the TCP communication into a Stream Control Transmission Protocol, SCTP, stream and adjusting associated parameters for flow control and congestion control; and sending a request to one of the peering network agents (36, 40) for more network resources.