In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Both URG and PSH belong to the flag bits in the TCP header. When URG and PSH are 1, they both indicate that emergency data is currently available. The difference is that emergency data are handled differently.
URG: 1 indicates that the emergency pointer field is valid. It tells the system that there is emergency data in this message segment, which should be delivered as soon as possible, which is equivalent to a high priority, and no longer needs to be queued in the receiving queue. For example, when we want to use Ctrl+C to terminate a remote process, we set URG to 1, and the sending application process tells the sender that the TCP has urgent data to transmit, so the sender inserts the emergency data at the front of the data in this paragraph, and the data after the emergency data is still ordinary data. A message segment with a urg of 1 is delivered directly upstream without entering the receiving buffer.
In the TCP header, only the emergency pointer indicates the location of the emergency data, and the bytes it refers to are emergency data, but there is no way to specify the length of the emergency data.
PSH: 1 means that the message segment needs to be sent to the application process of the receiver as soon as possible. If there is an emergency that the application needs to deal with (such as hoping to get an immediate reply from the receiver), the sequenced piece of data in the receiving buffer will be handed over to the upper layer instead of waiting for the entire cache to be filled before it is delivered up.
Therefore, we usually say that URG is the emergency bit and PSH is the urgent bit.
-muhuizz finishing
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.