新聞中心

EEPW首頁(yè) > 模擬技術(shù) > 設(shè)計(jì)應(yīng)用 > 如何實(shí)現(xiàn)DS34S132與其它TDMoP器件的互操作

如何實(shí)現(xiàn)DS34S132與其它TDMoP器件的互操作

作者: 時(shí)間:2012-02-16 來(lái)源:網(wǎng)絡(luò) 收藏
x">圖2 所示為UDP/IPv4報(bào)頭結(jié)構(gòu)。表2和3詳細(xì)說(shuō)明了IPv4和UDP報(bào)頭結(jié)構(gòu)的不同域。

如何實(shí)現(xiàn)DS34S132與其它TDMoP器件的互操作
圖2. UDP/IPv4報(bào)頭。

表2. IPv4報(bào)頭結(jié)構(gòu)

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報(bào)頭結(jié)構(gòu)

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.

根據(jù)IANA規(guī)定,UDP報(bào)頭的目標(biāo)端口應(yīng)設(shè)定為0x85E (2142),這是分配給的用戶(hù)端口號(hào)。Maxim TDMoP器件默認(rèn)遵循該規(guī)范。

部分TDMoP廠(chǎng)商在UDP報(bào)中的目標(biāo)端口號(hào)位置分配一個(gè)綁定標(biāo)識(shí)號(hào),而不是在源端口號(hào)位置。有些廠(chǎng)商還分配一個(gè)隨機(jī)號(hào)作為用戶(hù)端口號(hào),而不是采用IANA分配的0x85E。使用時(shí),用戶(hù)可采用兩種方式解決這些問(wèn)題。

  1. 在預(yù)配置菜單中,將全部綁定標(biāo)識(shí)號(hào)賦予相應(yīng)的位置。
  2. 向綁定引擎表明綁定標(biāo)識(shí)號(hào)在接收數(shù)據(jù)包中的位置。