文档目录


抓包示例

ICE之STUN协议---Binding Success Response

  • Stun Message Type
    0x0101 : Binding Success Response

  • Length
    60 : 说明后面的attributes总共60字节

  • Cookie : 4bytes
    必须是0x2112a442

  • Transaction ID
    和Binding Request 里的必须相同

  • Attributes(属性)

    • XOR-MAPPED-ADDRESS
      ICE之STUN协议---Binding Success Response

      • attribute type
        0x0020 : xor-mapped-address
      • attribute length
        8 : value一共8个字节
      • value
        ICE之STUN协议---Binding Success Response
        • 第一个字节 : reserved
        • FamilyICE之STUN协议---Binding Success Response
        • X-Port
          和cookie的异或值
        • X-Address
          和cookie的异或值
    • username

      • 和request里的相同
        ICE之STUN协议---Binding Success Response
    • message-integrity

      • 一致性校验的
        ICE之STUN协议---Binding Success Response
    • fingerprint

      • 后面会用到
        ICE之STUN协议---Binding Success Response

相关文章: