networking - What's the difference between Flow Control and Congestion Control in TCP? -
what's difference between flow control , congestion control in tcp? can broken down 2 parts: 1) overall purpose of flow vs congestion control, , 2) how task accomplished?
according wikipedia, tcp flow control relies on window size reported in ack message. congestion control relies on acknowledgement messages. know difference between 2 goals, , how work.
as part 1, super general overview:
flow control controlled receiving side. ensures sender sends receiver can handle. think of situation fast fiber connection might sending on dialup or similar. sender have ability send packets quickly, useless receiver on dialup, need way throttle sending side can send. flow control deals mechanisms available ensure communication goes smoothly.
congestion control method of ensuring across network has "fair" amount of access network resources, @ given time. in mixed-network environment, needs able assume same general level of performance. common scenario understand office lan. have number of lan segments in office doing thing within lan, may need go out on wan link slower constituent lan segments. picture having 100mb connections within lan go out through 5mb wan link. kind of congestion control need in place there ensure there no issues across greater network.
as part 2:
if interview-prep question, said above, consider taking time read on tcp/ip in general. don't use wikipedia. rtfm! worth time. argue important protocol holding of modern internet.
things read flow control: stop , wait, sliding window, pause frames.
things read congestion control: qos (quality-of-service), retransmission policies, windowing policies.
beyond that, can search particular vendor implementations (cisco, etc..)
Comments
Post a Comment