Test-Injecting MEP Requests

Injecting Test MEP Requests is fairly straightforward using the frame injector tool. It can be downloaded from http://lhcb-daq.web.cern.ch/lhcb-daq/download/tars/frame_injector.tgz

  • The tool works in two modes - a "create" mode and an "inject" mode.

  • In the "create" mode, there are no packets injected into the network. The tool only constructs a frame, and prints the ASCII representation of the packet (with hex values) to stdout. This may be saved in a file and modified to make a custom frame file.

  • In the "inject" mode, a pre-created frame file is injected as an ethernet packet directly onto a specified interface.

  • Frame files are very easy to create. One can copy the hex part of an ethereal packet dump and paste it in text mode onto a file. for example, in the provided sample frame file, an IP packet containing a MEP Request is defined.
00 01 e8 22 46 80 00 15  c5 e5 44 56 08 00 45 00
00 40 00 00 40 00 0a fd  1c e7 c0 a8 cc 01 c0 a9a        [fd ] => Protocol number for MEP Requests
05 87 00 01 00 00 00 00  00 00 00 00 00 00 00 00     [05 87] => Last two bytes of Dest. IP , [00 01]=>Number of MEP Requests
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00      

  • Frame files are pure text, and can be edited with any text editor. The frame injector has several other features. To see more, type
    injector --help
    .

-- SaiSuman - 15 Aug 2007

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2007-08-15 - SaiSuman
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback