Question: what is the difference between urgent pointer and urgent flag in tcp?
Answer: When URG flag is set it indicates that urgent data has to be sent immediately to wire from sender side and on receiving end the urgent data has to be sent immediately to application. Urgent pointer in TCP segment is used to indicate that amount of urgent data present in TCP segment.