Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Tuning the JNET Driver Failure Count

    Problem

    If you configure internal bypass for virtual routers, traffic will bypass processing if the IDP engine is unavailable or JNET driver fails to transmit packets as expected.

    In the latter case, internal bypass is triggered when the JNET driver receive queue failure count reaches 18 (about three minutes). After you have analyzed and resolved the cause of the JNET driver failure, you can return the interfaces to normal state by restarting the IDP engine.

    We have provided a tunable setting in case you prefer the IDP Series device to enter bypass sooner (decrease the count). If you want to give the JNET driver more time to self-correct, you can increase the failure count.

    To tune the default, modify the max_intf_recv_failed_cnt_nicbypass value in the user_funcs file. You must run idp.sh restart to restart the IDP engine and initialize any changes.

    Solution

    To tune the JNET driver failure count:

    1. Log into the CLI as admin and enter su - to switch to root.
    2. Open the /usr/idp/device/bin/user_funcs file in a text editor, such as vi.
    3. Locate the following line in the Variables section of the file:
      #########################################################################
                                  VARIABLES
      #########################################################################
      ...
      #  'max_intf_recv_failed_cnt_nicbypass' - The maximum count value for any
      # data interface indicating the number of times the packet could not
      # be received by that interface. If the count for any interface reaches
      # this value nicBypass gets triggered.
      #  **WARNING**: Changing the value would require running 'idp.sh restart'.
      
      export max_intf_recv_failed_cnt_nicbypass=18
      
      

      Note: If your upgrade path was from 5.0r1 to 5.0r2, your user_funcs files does not include the excerpt shown above. If this line is not present, the default is used. If you want to change the default, add the export statement shown to the Variables section of the user_funcs file.

    4. Modify the default value (18) as you prefer. The value 18 is approximately equivalent to 180 seconds. A value of 6 would be approximately 60 seconds.
    5. Save the file and exit the editor.
    6. Restart the IDP engine:

      [root@defaulthost admin]# idp.sh restart

      Restarting the IDP engine can take several moments.


    Published: 2011-02-08