8.1.1.6 Max-Forwards 8.1.1.6最大转发 The Max-Forwards header field serves to limit the number of hops a request can transit on the way to its destination. It consists of an integer that is decremented by one at each hop. If the Max-Forwards value reaches 0 before the request reaches its destination, it will be rejected with a 483(Too Many Hops) error response. 最大转发头字段用于限制请求在到达目的地的途中可以传输的跃点数。它由一个整数组成,每个跃点递减一。如果在请求到达目的地之前,最大转发值达到0,则会被483(跳数过多)错误响应拒绝。 A UAC MUST insert a Max-Forwards header field into each request it originates with a value that SHOULD be 70. This number was chosen to be sufficiently large to guarantee that a request would not be dropped in any SIP network when there were no loops, but not so large as to consume proxy resources when a loop does occur. Lower values should be used with caution and only in networks where topologies are known by the UA.
UAC必须在其发起的每个请求中插入一个最大转发报头字段,该字段的值应为70。这个数字被选择为足够大,以保证当没有跃点时,请求不会在任何SIP网络中被丢弃,但不会大到当环路确实发生时消耗代理资源。应谨慎使用较低的值,并且仅在UA已知拓扑的网络中使用。