IPV6的SIP报文和IPV4的SIP报文比较

数据安全 数据安全 2040 人阅读 | 0 人回复

发表于 2023-5-19 15:22:40 | 显示全部楼层 |阅读模式

IPV6的SIP报文和IPV4的SIP报文比较
  1. [1] fec0:0:0:1001::3.5060 > fec0:0:0:1001::1.5060

  2. INVITE sip:102@[fec0:0:0:1001::1] SIP/2.0
  3. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  4. CSeq: 2 INVITE
  5. From: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  6. To: <sip:102@[fec0:0:0:1001::1]>
  7. Via: SIP/2.0/UDP [fec0:0:0:1001:0:0:0:3]:5060;branch=z9hG4bK-373838-0724cc1aa770fb3d7a70a456274bd649
  8. Max-Forwards: 70
  9. Contact: "103" <sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1]>
  10. User-Agent: Jitsi1.0-beta1-nightly.build.3522Linux
  11. Content-Type: application/sdp
  12. Content-Length: 875

  13. v=0
  14. o=103 0 0 IN IP6 fec0:0:0:1001:0:0:0:3
  15. s=-
  16. c=IN IP6 fec0:0:0:1001:0:0:0:3
  17. t=0 0
  18. m=audio 5004 RTP/AVP 9 96 97 0 8 98 3 99 5 6 4 15 101
  19. a=rtpmap:9 G722/8000
  20. ...


  21. [2] 192.168.178.26.5060 > 192.168.178.21.5060

  22. INVITE sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26 SIP/2.0
  23. Record-Route: <sip:192.168.178.26;r2=on;lr=on;nat=v46>
  24. Record-Route: <sip:[FEC0:0:0:1001:0:0:0:1];r2=on;lr=on;nat=v46>
  25. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  26. CSeq: 2 INVITE
  27. From: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  28. To: <sip:102@[fec0:0:0:1001::1]>
  29. Max-Forwards: 69
  30. Contact: "103" <sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1]>
  31. User-Agent: Jitsi1.0-beta1-nightly.build.3522Linux
  32. Content-Type: application/sdp
  33. Via: SIP/2.0/UDP 192.168.178.26;branch=z9hG4bK0099.a33fcf56.0
  34. Via: SIP/2.0/UDP [fec0:0:0:1001:0:0:0:3]:5060;rport=5060;branch=z9hG4bK-373838-da2adaf5a3c34a1de259916f79ba11b7
  35. Content-Length: 881

  36. v=0
  37. o=103 0 0 IN IP4 192.168.178.26
  38. s=-
  39. c=IN IP4 192.168.178.26
  40. t=0 0
  41. m=audio 61536 RTP/AVP 9 96 97 0 8 98 3 99 5 6 4 15 101
  42. a=rtpmap:9 G722/8000
  43. ...
  44. a=nortpproxy:yes


  45. [3] 192.168.178.21.5060 > 192.168.178.26.5060

  46. SIP/2.0 200 OK
  47. To: <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  48. Via: SIP/2.0/UDP 192.168.178.26;branch=z9hG4bK0099.a33fcf56.0,SIP/2.0/UDP [fec0:0:0:1001:0:0:0:3]:5060;rport=5060;branch=z9hG4bK-373838-da2adaf5a3c34a1de259916f79ba11b7
  49. Record-Route: <sip:192.168.178.26;r2=on;lr=on;nat=v46>,<sip:[FEC0:0:0:1001:0:0:0:1];r2=on;lr=on;nat=v46>
  50. CSeq: 2 INVITE
  51. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  52. From: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  53. Contact: "102" <sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26>
  54. User-Agent: Jitsi1.0-beta1-nightly.build.3521Mac OS X
  55. Content-Type: application/sdp
  56. Content-Length: 781

  57. v=0
  58. o=102 0 0 IN IP4 192.168.178.21
  59. s=-
  60. c=IN IP4 192.168.178.21
  61. t=0 0
  62. m=audio 5008 RTP/AVP 9 96 97 0 8 98 99 5 6 15 101
  63. a=rtpmap:9 G722/8000
  64. ...


  65. [4] fec0:0:0:1001::1.5060 > fec0:0:0:1001::3.5060

  66. SIP/2.0 200 OK
  67. To: <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  68. Via: SIP/2.0/UDP [fec0:0:0:1001:0:0:0:3]:5060;rport=5060;branch=z9hG4bK-373838-da2adaf5a3c34a1de259916f79ba11b7
  69. Record-Route: <sip:192.168.178.26;r2=on;lr=on;nat=v46>,<sip:[FEC0:0:0:1001:0:0:0:1];r2=on;lr=on;nat=v46>
  70. CSeq: 2 INVITE
  71. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  72. From: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  73. Contact: "102" <sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26>
  74. User-Agent: Jitsi1.0-beta1-nightly.build.3521Mac OS X
  75. Content-Type: application/sdp
  76. Content-Length: 805

  77. v=0
  78. o=102 0 0 IN IP6 fec0:0:0:1001::1
  79. s=-
  80. c=IN IP6 fec0:0:0:1001::1
  81. t=0 0
  82. m=audio 38516 RTP/AVP 9 96 97 0 8 98 99 5 6 15 101
  83. a=rtpmap:9 G722/8000
  84. ...
  85. a=nortpproxy:yes


  86. [5] fec0:0:0:1001::3.5060 > fec0:0:0:1001::1.5060

  87. ACK sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26 SIP/2.0
  88. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  89. CSeq: 2 ACK
  90. Via: SIP/2.0/UDP [fec0:0:0:1001:0:0:0:3]:5060;branch=z9hG4bK-373838-cb66ec5365d63fe8e6f3f81ab0f66a7b
  91. From: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  92. To: "102" <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  93. Max-Forwards: 70
  94. Route: <sip:[FEC0:0:0:1001:0:0:0:1];r2=on;lr=on;nat=v46>,<sip:192.168.178.26;r2=on;lr=on;nat=v46>
  95. Contact: "103" <sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1]>
  96. User-Agent: Jitsi1.0-beta1-nightly.build.3522Linux
  97. Content-Length: 0


  98. [6] 192.168.178.26.5060 > 192.168.178.21.5060

  99. ACK sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26 SIP/2.0
  100. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  101. CSeq: 2 ACK
  102. Via: SIP/2.0/UDP 192.168.178.26;branch=z9hG4bKcydzigwkX
  103. Via: SIP/2.0/UDP [fec0:0:0:1001:0:0:0:3]:5060;rport=5060;branch=z9hG4bK-373838-cb66ec5365d63fe8e6f3f81ab0f66a7b
  104. From: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  105. To: "102" <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  106. Max-Forwards: 69
  107. Contact: "103" <sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1]>
  108. User-Agent: Jitsi1.0-beta1-nightly.build.3522Linux
  109. Content-Length: 0



  110. [7] 192.168.178.21.5060 > 192.168.178.26.5060

  111. BYE sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1] SIP/2.0
  112. CSeq: 1 BYE
  113. From: <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  114. To: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  115. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  116. Max-Forwards: 70
  117. Route: <sip:192.168.178.26;r2=on;lr=on;nat=v46>,<sip:[FEC0:0:0:1001:0:0:0:1];r2=on;lr=on;nat=v46>
  118. Via: SIP/2.0/UDP 192.168.178.21:5060;branch=z9hG4bK-393630-97675b8dfcf6c8698398b150cdb24845
  119. Contact: "102" <sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26>
  120. User-Agent: Jitsi1.0-beta1-nightly.build.3521Mac OS X
  121. Content-Length: 0



  122. [8] fec0:0:0:1001::1.5060 > fec0:0:0:1001::3.5060

  123. BYE sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1] SIP/2.0
  124. CSeq: 1 BYE
  125. From: <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  126. To: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  127. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  128. Max-Forwards: 69
  129. Via: SIP/2.0/UDP [FEC0:0:0:1001:0:0:0:1];branch=z9hG4bK3099.f30b84.0
  130. Via: SIP/2.0/UDP 192.168.178.21:5060;rport=5060;branch=z9hG4bK-393630-97675b8dfcf6c8698398b150cdb24845
  131. Contact: "102" <sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26>
  132. User-Agent: Jitsi1.0-beta1-nightly.build.3521Mac OS X
  133. Content-Length: 0


  134. [9] fec0:0:0:1001::3.5060 > fec0:0:0:1001::1.5060

  135. SIP/2.0 200 OK
  136. To: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  137. Via: SIP/2.0/UDP [FEC0:0:0:1001:0:0:0:1];branch=z9hG4bK3099.f30b84.0;received=fec0:0:0:1001:0:0:0:1,SIP/2.0/UDP 192.168.178.21:5060;rport=5060;branch=z9hG4bK-393630-97675b8dfcf6c8698398b150cdb24845
  138. CSeq: 1 BYE
  139. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  140. From: <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  141. Contact: "103" <sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1]>
  142. User-Agent: Jitsi1.0-beta1-nightly.build.3522Linux
  143. Content-Length: 0


  144. [10] 192.168.178.26.5060 > 192.168.178.21.5060

  145. SIP/2.0 200 OK
  146. To: "103" <sip:103@[fec0:0:0:1001::1]>;tag=3891da55
  147. Via: SIP/2.0/UDP 192.168.178.21:5060;rport=5060;branch=z9hG4bK-393630-97675b8dfcf6c8698398b150cdb24845
  148. CSeq: 1 BYE
  149. Call-ID: cc8f5a3f528f880e3caabbf11605b0c2@0:0:0:0:0:0:0:0
  150. From: <sip:102@[fec0:0:0:1001::1]>;tag=7e28fdba
  151. Contact: "103" <sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1]>
  152. User-Agent: Jitsi1.0-beta1-nightly.build.3522Linux
  153. Content-Length: 0
复制代码
  1. # kamctl ul show

  2. Domain:: location table=512 records=2 max_slot=1
  3.         AOR:: 102
  4.                 Contact:: sip:102@192.168.178.21:5060;transport=udp;registering_acc=192_168_178_26 Q=
  5.                         Expires:: 562
  6.                         Callid:: 54cf25d15fe668a1d542616093f99c70@0:0:0:0:0:0:0:0
  7.                         Cseq:: 2
  8.                         User-agent:: Jitsi1.0-beta1-nightly.build.3521Mac OS X
  9.                         Received:: sip:192.168.178.21:5060
  10.                         State:: CS_DIRTY
  11.                         Flags:: 0
  12.                         Cflag:: 2
  13.                         Socket:: udp:192.168.178.26:5060
  14.                         Methods:: 4294967295
  15.         AOR:: 103
  16.                 Contact:: sip:103@[fec0:0:0:1001:0:0:0:3]:5060;transport=udp;registering_acc=[fec0:0:0:1001::1] Q=
  17.                         Expires:: 596
  18.                         Callid:: b5291cb60c79d65c65291364c7103138@0:0:0:0:0:0:0:0
  19.                         Cseq:: 2
  20.                         User-agent:: Jitsi1.0-beta1-nightly.build.3522Linux
  21.                         State:: CS_DIRTY
  22.                         Flags:: 0
  23.                         Cflag:: 64
  24.                         Socket:: udp:[FEC0:0:0:1001:0:0:0:1]:5060
  25.                         Methods:: 4294967295
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则