新聞中心

        EEPW首頁 > 模擬技術 > 設計應用 > 如何實現DS34S132與其它TDMoP器件的互操作

        如何實現DS34S132與其它TDMoP器件的互操作

        作者: 時間:2012-02-16 來源:網絡 收藏
        x">圖2 所示為UDP/IPv4報頭結構。表2和3詳細說明了IPv4和UDP報頭結構的不同域。

        如何實現DS34S132與其它TDMoP器件的互操作
        圖2. UDP/IPv4報頭。

        表2. IPv4報頭結構

        FieldDescription
        IPVERIP version number; IPv4 IPVER = 4
        IHLLength in 32-bit words of the IP Header, IHL = 5
        IP TOSIP type of service
        Total lengthLength in octets of IP Header and data
        IdentificationIP fragmentation identification
        FlagsIP control flags; must be set to 010 to avoid fragmentation
        Fragment offsetIndicates where in the datagram the fragment belongs; not used for
        Time to liveIP time-to-live field; datagrams with zero in this field are discarded
        ProtocolMust be set to 0x11 to signify UDP
        IP Header checksumChecksum for the IP Header
        Source IP addressIP address of the source
        Destination IP addressIP address of the destination

        表3. UDP報頭結構

        FieldDescription
        Source port number, destination port numberEither the source or the destination port number holds the bundle identifier. The unused field can be set to 0x85E (2142), which is the user's port number assigned to by the Internet Assigned Numbers Authority (IANA). For UDP/IP-specific OAM packets, the bundle identifier is all 1s.
        UDP lengthLength in octets of UDP Header and data
        UDP checksumChecksum of UDP/IP Header and data. If not computed, it must be set to zero.

        根據IANA規定,UDP報頭的目標端口應設定為0x85E (2142),這是分配給的用戶端口號。Maxim TDMoP器件默認遵循該規范。

        部分TDMoP廠商在UDP報中的目標端口號位置分配一個綁定標識號,而不是在源端口號位置。有些廠商還分配一個隨機號作為用戶端口號,而不是采用IANA分配的0x85E。使用時,用戶可采用兩種方式解決這些問題。

        1. 在預配置菜單中,將全部綁定標識號賦予相應的位置。
        2. 向綁定引擎表明綁定標識號在接收數據包中的位置。