Open TCP or UDP Linux sockets from the bash shell and verify that the socket entries are programmed into the Local Packet Transport Services (LPTS) infrastructure to distribute traffic to the hosted application.
Use this procedure to open Linux sockets so that applications can receive traffic from IOS XR interfaces. Socket entries are programmed into the LPTS infrastructure, which distributes the information through the line cards. Any packet received on a line card interface triggers an LPTS lookup to direct the packet to the application that opened the socket.
Procedure
| 1. | From the bash shell, open a TCP socket using netcat and verify that applications open sockets. Example:
Netcat starts listening on port 5000, which appears as an IPv4 TCP socket in the netstat output, as in a typical Linux kernel. This socket is programmed to LPTS, which creates a corresponding hardware entry to look up TCP port 5000. Incoming traffic is redirected to the kernel of the active RP where netcat runs. |
|
| 2. | Verify that the socket is programmed into the LPTS infrastructure. Example:
The LPTS entry for TCP port 5000 confirms that traffic destined for that port is correctly directed to the Linux application through the Packet I/O infrastructure. |
The Linux socket is open and the LPTS entry confirms that the IOS XR packet infrastructure will direct matching traffic to the application.