通信设计应用
How to make the DS34S132 TDM-over-Packet (TDMoP) IC interoperable with other vendors' TDMoP devices
Interoperability is the ability of a system to work with other vendors' systems with little or no intervention from the system operator. The interoperability of systems makes it possible to provide services to, and accept services from, other systems. It enables different vendors' systems to operate properly together. This application note explains how the DS34S132 TDM-over-Packet (TDMoP) IC can be set up to provide interoperability with any other vendor's TDMoP device.
It is no secret that today's communications require ever more complex interactions among systems and components. It is within this context that interoperability assumes greater importance with each technological advance. Interoperability is the ability of a system to work with other vendors' systems with little or no intervention from the system operator. The interoperability of systems makes it possible to provide services to, and accept services from, other systems. It enables different vendors' systems to operate properly together.
This application note focuses on the Maxim TDM-over-Packet (TDMoP) IC, the DS34S132. The article explains the setup requirements to provide interoperability between the DS34S132 and other vendors' TDMoP devices.
The packet stream created by Maxim's TDMoP devices may not have the same packet header information as other vendors' TDMoP devices. To make TDMoP devices interoperable, the user needs to know the device's setup type. The setup for a Maxim device will be one of the following:
Each TDMoP device setup has different packet headers. To be interoperable, the packet header from Maxim TDMoP devices must be formatted the same as the packet header from other vendors' devices. This means that the user needs to compare the packet headers for the TDMoP devices and look for format differences. This application note shows how to modify packet header values for the DS34S132 TDMoP device by using the Maxim user application. It also explains how to change the Maxim bundle configuration to accept packets with same protocol but different header information.
This section shows the functional description for the TDM-over-Packet module. To transport TDM data through packet-switched networks, the TDMoP device encapsulates TDM data into Ethernet packets, as depicted in Figure 1. The descriptions for different blocks of the TDMoP headers are given in Table 1.
Figure 1. TDMoP encapsulation in an Ethernet packet.
Table 1. Ethernet packet structure
Field | Description |
Preamble | A sequence of 56 bits (alternating 1 and 0 values) used for synchronization. Gives components in the network time to detect the presence of a signal. |
Start frame delimiter | A sequence of 8 bits (10101011) that indicates the start of the packet. |
Destination and Source Addresses | The Destination Address field identifies the station or stations that are to receive the packet. The Source Address identifies the station that originated the packet. A Destination Address can specify either an "individual address" destined for a single station, or a "multicast address" destined for a group of stations. A Destination Address of all 1 bits refers to all stations on the LAN and is called a "broadcast address." |
Type | Ether type |
Data and padding | This field contains the data transferred from the source station to the destination station or stations. The maximum size of this field is 1500 bytes. A minimum size Ethernet packet is 64 bytes from the Destination Address field through the Frame Check Sequence. If the packet size of this field is less than 46 bytes, padding is used to bring the packet size up to the minimum length. |
Frame check sequence | This field contains a 4-byte cyclical redundancy check (CRC) value used for error checking. When a source station assembles a packet, it performs a CRC calculation on all the bits in the packet from the Destination Address through the pad fields (that is, all fields except the preamble, start frame delimiter, and Frame Check Sequence). The source station stores the value in this field and transmits it as part of the packet. When the destination station receives the packet, it performs an identical check. If the calculated value does not match the value in this field, the destination station assumes that an error has occurred during transmission and discards the packet. |
Figure 2 shows the UDP/IPv4 header structure. Tables 2 and 3 describe the different fields of IPv4 and UDP Header structures.
Figure 2. UDP/IPv4 header.
Table 2. IPv4 Header structure
Field | Description |
IPVER | IP version number; IPv4 IPVER = 4 |
IHL | Length in 32-bit words of the IP Header, IHL = 5 |
IP TOS | IP type of service |
Total length | Length in octets of IP Header and data |
Identification | IP fragmentation identification |
Flags | IP control flags; must be set to 010 to avoid fragmentation |
Fragment offset | Indicates where in the datagram the fragment belongs; not used for TDMoP |
Time to live | IP time-to-live field; datagrams with zero in this field are discarded |
Protocol | Must be set to 0x11 to signify UDP |
IP Header checksum | Checksum for the IP Header |
Source IP address | IP address of the source |
Destination IP address | IP address of the destination |
Field | Description |
Source port number, destination port number | Either 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 TDMoP by the Internet Assigned Numbers Authority (IANA). For UDP/IP-specific OAM packets, the bundle identifier is all 1s. |
UDP length | Length in octets of UDP Header and data |
UDP checksum | Checksum of UDP/IP Header and data. If not computed, it must be set to zero. |
Figure 7 shows the RTP Header structure and Table 4 describes the different fields of the RTP Header structures.
Figure 7. RTP Header.
Table 4. RTP Header structure
Field | Description |
V | RTP version; must be set to 2. |
P | Padding bit; must be set to 0. |
X | Extension bit; must be set to 0. |
CC | CSRC count; must be set to 0. |
M | Marker bit; must be set to 0. |
PT | Payload type. One PT value MUST be allocated from the range of dynamic values for each direction of the bundle. The same PT value MAY be reused for both directions of the bundle, and is also reused between different bundles. |
SN | The sequence number identical to the sequence number in the control word. |
TS | Timestamp. The RTP Header can be used in conjunction with the following modes of timestamp generation: Absolute mode: the chip sets timestamps using the clock recovered from the incoming TDM circuit. Differential (common clock) mode: The two chips at bundle edges have access to the same high-quality clock source, and this clock source is used for timestamp generation. |
SSRC | Identifies the synchronization source. This identifier should be chosen randomly, with the intent that no two synchronization sources within the same RTP session will have the same SSRC identifier. |
Whether the packet is in Adaptive Clock Recovery mode or in Differential Clock Recovery mode, the user then can generate a timestamp in the RTP Header by changing the interface and Bundle Configuration, as shown in Figure 10.
Figure 10. Selecting Bit, Byte, or Frame mode for timestamp in interface configuration.
Once the selection of clock recovery mode and Timestamp generation mode is done in the interface configuration, then the user needs to enable RTP mode in the Bundle Configuration. Previously, Figure 5 showed the Bundle Configuration with RTP mode disabled. From this Bundle Configuration menu, the user needs to use option 27 to enable RTP mode, as shown in Figure 11.
Figure 11. Selecting Bit, Byte, or Frame mode for a timestamp in interface configuration.
Once the RTP mode is enabled, then the Bundle Configuration menu will look like Figure 12.
Figure 12. Bundle Configuration menu after enabling RTP mode.
There are different kinds of software for analyzing the packet headers on the Ethernet. Wireshark® software was used for this application note. The freeware is available for download. For more information about Wireshark, please use the Frequently Asked Questions sections from the website.
Interoperability refers to the ability of diverse systems and organizations to work together seamlessly. Products achieve interoperability either by adhering to published interface standards, or by allowing configuration changes that convert one product's interface into another product's interface "on the fly". By knowing the contents of the packets generated by other TDMoP devices, Maxim devices can be configured easily to match the packet configurations of other TDMoP devices.
If you have questions about TDMoP products or any other Maxim telecom products, then please join our Member Center.
After completing the membership sign-up process, please submit your support request online via the technical support request form.
全部0条评论
快来发表一下你的评论吧 !