<samp id="cmiww"><tbody id="cmiww"></tbody></samp>
<ul id="cmiww"><pre id="cmiww"></pre></ul>
<ul id="cmiww"></ul>
<cite id="cmiww"></cite>
  • <samp id="cmiww"></samp>
    <samp id="cmiww"></samp>
  • <strike id="cmiww"><abbr id="cmiww"></abbr></strike>
    <samp id="cmiww"><tbody id="cmiww"></tbody></samp>
  • <ul id="cmiww"><tbody id="cmiww"></tbody></ul>
  • Spirent TestCenter 快速了解高級順序檢查-云帆興燁

    發(fā)表日期:2023/08/11 瀏覽次數(shù):

    經(jīng)常有同學(xué)咨詢Spirent TestCenter測試流統(tǒng)計(jì)中的丟包、亂序等統(tǒng)計(jì)問題,Spirent TestCenter是如何定義的?為了方便記憶查閱,在此簡單介紹。


    一、 了解Spirent TestCenter Signature


    (1)Signature結(jié)構(gòu)

    111.png

    圖-1


    • Signature 是做了一定的編碼的,需要指定的或者較高版本的wireshark才能解析

    • 總共20 bytes 在報(bào)文的有效載荷最后20字節(jié)(除FCS,以及一些padding,trailer)

    • Stream ID位包含了32 bits (標(biāo)記流,在detailed stream results中“Name/ID”也會體現(xiàn))

    • 精確到2.5ns的 Timestamp (時(shí)延計(jì)算)

    • 序列號(Sequence),占用長度為6字節(jié),用來指出幀在所在測試流中的順序(高級順序檢查,幀攜帶的序列號)

    • 當(dāng)Spirent TestCenter在payload插入PRBS 23 時(shí) PRBS bit 將被置位 (誤碼率測試)

    • 告訴接收者,時(shí)間戳是在哪個(gè)位置打上的(時(shí)延計(jì)算)

    • UDP/TCP Checksum Cheater field (UDP/TCP校驗(yàn)和修正)


             

    (2)Signature在流中的配置。

    默認(rèn)是勾選的,因?yàn)榱鹘y(tǒng)計(jì)基于signature所含內(nèi)容

    222.png

    圖-2


    (3)使用wireshark查看Signature樣式

    3333.png

    圖-3


    二、 認(rèn)識序列檢查


    上文我們知道了Spirent TestCenter Signature中攜帶了幀的序列號。在分述之前,首先我們再了解一個(gè)概念值 Expected Sequence number(期待序列號)。

    我們用 Exp(sequence)代表期待序列號,Rx(sequence)代表收到的序列號。剛啟動分析器時(shí)候,Exp(sequence)無值,在收到第一個(gè)幀的時(shí)候Exp(sequence) = Rx(sequence)+1

    后續(xù)過程中,如果Rx(sequence) < Exp(sequence),那么Exp(sequence)不變;如果Rx(sequence) >= Exp(sequence),那么Exp(sequence) = Rx(sequence)+1

    進(jìn)一步,我們簡單了解一個(gè)概念sequence run windows,它是當(dāng)前接收到的連續(xù)幀組成的一個(gè)隊(duì)列。這個(gè)隊(duì)列跟蹤的最大幀個(gè)數(shù)可以通過Advanced Sequence Threshold自定義,默認(rèn)為1000。

    4444.png

    圖-4

    部分統(tǒng)計(jì)技術(shù)原理:

    (1)In sequence count (frames)

    收到幀序列號比上一幀序列號大1

    (2)Out of sequence count (frames)

    不屬于Insequence的幀

    (3)Dropped count (frames)

    收到的幀序列號大于期待幀,丟包數(shù)量 = Rx(sequence)- Exp(sequence)

    (4)Duplicate count(frames)

    Rx(sequence)< Exp(sequence)且在sequence run windows范圍內(nèi)

    (5)In-order count (frames)

    收到的幀序列號大于等于期待幀, Rx(sequence) >= Exp(sequence)

    (6)Re-ordered count (frames)

    Rx(sequence) < Exp(sequence),不在sequence run windows范圍內(nèi),但Rx(sequence) >= Exp(sequence) - Advanced Sequence Threshold (如圖-5示)

    (7)Late count (frames)

    晚到幀,Rx(sequence) < Exp(sequence) - Advanced Sequence Threshold (如圖-5示)

    5555.png

    圖-5

                                 

    希望上述介紹能對您有所幫助。



    <samp id="cmiww"><tbody id="cmiww"></tbody></samp>
    <ul id="cmiww"><pre id="cmiww"></pre></ul>
    <ul id="cmiww"></ul>
    <cite id="cmiww"></cite>
  • <samp id="cmiww"></samp>
    <samp id="cmiww"></samp>
  • <strike id="cmiww"><abbr id="cmiww"></abbr></strike>
    <samp id="cmiww"><tbody id="cmiww"></tbody></samp>
  • <ul id="cmiww"><tbody id="cmiww"></tbody></ul>