You are here: CSP Developer’s Guide: Internet Protocol > 2 VDAC-ONE Card > Routing Examples

Routing Examples

Routing Based on Criteria Type Source IP Address

For routing based on the Criteria Type, Source IP Address, use the Generic PPL TLV in the following format:

ICB Type | 0x03
ICB Subtype | Generic PPL TLV (0x1E)
ICB Data Length | 0x13
Number of TLVs | 0x0003
Tag | Routing Method (0x0013)
Length | 0x0002
Value | Data[0] 0x00 Criteria Type (MSB)
Data[1] 0x08 Criteria Type (LSB)
Tag | Criteria Type (0x0008)
Length | 0x0002
Value | Data[0] 0x27 (MSB) Source IP Address
Data[1] 0x92 (LSB) Source IP Address
Tag | Router Protocol ID (0x000F)
Length | 0x0001
Value | Data[0] 0x0B

Routing Based on Criteria Type Any IP Channel

For routing based on the Criteria Type, Any IP Channel, use the Generic PPL TLV in the following format:

ICB Type | 0x03
ICB Subtype | Generic PPL TLV (0x1E)
ICB Data Length | 0x13
Number of TLVs | 0x0003
Tag | Routing Method (0x0013)
Length | 0x0002
Value | Data[0] 0x00 Criteria Type (MSB)
Data[1] 0x08 Criteria Type (LSB)
Tag | Criteria Type (0x0008)
Length | 0x0002
Value | Data[0] 0x00 (MSB) Any IP Channel
Data[1] 0x65 (LSB) Any IP Channel
Tag | Router Protocol ID (0x000F)
Length | 0x0001
Value | Data[0] 0x0B

Routing Based on Group ID

For routing based on the Route Group ID, use the Generic PPL TLV in the following format:

ICB Type | 0x02
ICB Subtype | Generic PPL TLV (0x1E)
ICB Data Length | 0x13
Number of TLVs | 0x0003
Tag | Routing Method (0x0013)
Length | 0x0002
Value | Data[0] 0x00 Route Group ID (MSB)
Data[1] 0x06 Route Group ID (LSB)
Tag | Route Group ID (0x0006)
Length | 0x0002
Value | Data[0] (MSB) Route Group ID
Data[1] (LSB) Route Group ID
Tag | Router Protocol ID (0x000F)
Length | 0x0001
Value | Data[0] 0x0B

Internet Protocol. Part of the TCP/IP family of protocols used to route messages and tracks the addresses of nodes.
A 32-bit address, used in IP routing, which includes a Network address identifier assigned by a central authority and a Host ID (an end station identifier assigned by a LAN administrator).
See Programmable Protocol Language.
Tag-Length-Value block. A standardized block that allows data to inserted in a standard way into API messages.
See Information Control Block.
Most Significant Bit
Least Significant Bit