BPRC(5)
π BPRC(5) β BP configuration files π
okay so bestie, welcome to section 5 of the manual β BP configuration files β¨ this whole page is about <pink>bprc</pink>, the Bundle Protocol management commands file, and ngl it's a chunky one. grab a snack π
πΈ NAME πΈ
bprc β Bundle Protocol management commands file π«Ά
β¨ DESCRIPTION β¨
So here's the tea β β Bundle Protocol management commands get handed to <cyan>bpadmin</cyan> in one of two ways: either in a file of text lines, or interactively right at bpadmin's command prompt, which is <hotpink>:</hotpink> (yes, literally just a colon, iconic).
Commands are interpreted line by line, and it's exactly one command per line. No stacking, no sneaking two in. The formats and effects of all the Bundle Protocol management commands are described below π
π GENERAL COMMANDS π
?β the help command π It displays a listing of the commands and their formats. It is the same as thehcommand.#β comment line π Lines beginning with#are not interpreted. Say whatever you want, nobody's reading it.e { 1 | 0 }β echo control π£ Setting echo to1causes all output printed bybpadminto be logged as well as sent to stdout. Setting echo to0disables this behavior.vβ version number β Prints out the version of ION currently installed and the crypto suite BP was compiled with. HINT: combine withe 1command to log the version number at startup.1β the initialize command π Until this command is executed, Bundle Protocol is not in operation on the local ION node and mostbpadmincommands will fail. so like, do this one first, fr fr.r 'command_text'β the run command π This command will executecommand_textas if it had been typed at a console prompt. It is used to, for example, run another administrative program.sβ the start command π¬ This command starts all schemes and all protocols on the local node.m heapmax max_database_heap_per_acquisitionβ the manage heap for bundle acquisition command π§Ί This command declares the maximum number of bytes of SDR heap space that will be occupied by any single bundle acquisition activity (nominally the acquisition of a single bundle, but this is at the discretion of the convergence-layer input task). All data acquired in excess of this limit will be written to a temporary file pending extraction and dispatching of the acquired bundle or bundles. Default is the size of a ZCO file reference object, the minimum SDR heap space occupancy in the event that all acquisition is into a file.xβ the stop command π This command stops all schemes and all protocols on the local node.w { 0 | 1 | activity_spec }β the BP watch command π This command enables and disables production of a continuous stream of user-selected Bundle Protocol activity indication characters. A watch parameter of"1"selects all BP activity indication characters;"0"de-selects all BP activity indication characters; any other activity_spec such as"acz~"selects all activity indication characters in the string, de-selecting all others. BP will print each selected activity indication character to stdout every time a processing event of the associated type occurs:aβ new bundle is queued for forwardingbβ bundle is queued for transmissioncβ bundle is popped from its transmission queuemβ custody acceptance signal is receivedwβ custody of bundle is acceptedxβ custody of bundle is refusedyβ bundle is accepted upon arrivalzβ bundle is queued for delivery to an application~β bundle is abandoned (discarded) on attempt to forward it!β bundle is destroyed due to TTL expiration&β custody refusal signal is received#β bundle is queued for re-forwarding due to CL protocol failurejβ bundle is placed in"limbo"for possible future re-forwardingkβ bundle is removed from"limbo"and queued for re-forwarding
hβ the help command π This will display a listing of the commands and their formats. It is the same as the?command.
π¦ SCHEME COMMANDS π¦
a scheme scheme_name 'forwarder_command' 'admin_app_command'β the add scheme command π This command declares an endpoint naming "scheme" for use in endpoint IDs, which are structured as URIs:scheme_name:scheme-specific_part.forwarder_commandwill be executed when the scheme is started on this node, to initiate operation of a forwarding daemon for this scheme.admin_app_commandwill also be executed when the scheme is started on this node, to initiate operation of a daemon that opens a custodian endpoint identified within this scheme so that it can receive and process custody signals and bundle status reports.c scheme scheme_name 'forwarder_command' 'admin_app_command'β the change scheme command βοΈ This command sets the indicated scheme'sforwarder_commandandadmin_app_commandto the strings provided as arguments.d scheme scheme_nameβ the delete scheme command π This command deletes the scheme identified by scheme_name. The command will fail if any bundles identified in this scheme are pending forwarding, transmission, or delivery.i scheme scheme_nameβ This command will print information (number and commands) about the endpoint naming scheme identified by scheme_name.l schemeβ This command lists all declared endpoint naming schemes πs scheme scheme_nameβ the start scheme command π¬ This command starts the forwarder and administrative endpoint tasks for the indicated scheme task on the local node.x scheme scheme_nameβ the stop scheme command π This command stops the forwarder and administrative endpoint tasks for the indicated scheme task on the local node.
π ENDPOINT COMMANDS π
a endpoint endpoint_ID { q | x } ['recv_script']β the add endpoint command β¨ This command establishes a DTN endpoint named endpoint_ID on the local node. The remaining parameters indicate what is to be done when bundles destined for this endpoint arrive at a time when no application has got the endpoint open for bundle reception. If'x', then such bundles are to be discarded silently and immediately π If'q', then such bundles are to be enqueued for later delivery and, if recv_script is provided, recv_script is to be executed.c endpoint endpoint_ID { q | x } ['recv_script']β the change endpoint command βοΈ This command changes the action that is to be taken when bundles destined for this endpoint arrive at a time when no application has got the endpoint open for bundle reception, as described above.d endpoint endpoint_IDβ the delete endpoint command π This command deletes the endpoint identified by endpoint_ID. The command will fail if any bundles are currently pending delivery to this endpoint.i endpoint endpoint_IDβ This command will print information (disposition and script) about the endpoint identified by endpoint_ID.l endpointβ This command lists all local endpoints, regardless of scheme name π
π₯ PROTOCOL COMMANDS π₯
a protocol protocol_name payload_bytes_per_frame overhead_bytes_per_frame [nominal_data_rate]β the add protocol command π This command establishes access to the named convergence layer protocol at the local node. Thepayload_bytes_per_frameandoverhead_bytes_per_framearguments are used in calculating the estimated transmission capacity consumption of each bundle, to aid in route computation and congestion forecasting.
The optional nominal_data_rate argument overrides the hard-coded default continuous data rate for the indicated protocol, for purposes of rate control. For all CL protocols other than LTP, the protocol's applicable nominal continuous data rate is the data rate that is always used for rate control over links served by that protocol; data rates are not extracted from contact graph information. This is because only the LTP induct and outduct throttles can be dynamically adjusted in response to changes in data rate between the local node and its neighbors, because (currently) there is no mechanism for mapping neighbor node number to the duct name for any other CL protocol. For LTP, duct name is simply LTP engine number which, by convention, is identical to node number. For all other CL protocols, the nominal data rate in each induct and outduct throttle is initially set to the protocol's configured nominal data rate and is never subsequently modified.
d protocol protocol_nameβ the delete protocol command π This command deletes the convergence layer protocol identified by protocol_name. The command will fail if any ducts are still locally declared for this protocol.i protocol protocol_nameβ This command will print information about the convergence layer protocol identified by protocol_name.l protocolβ This command lists all convergence layer protocols that can currently be utilized at the local node πs protocol protocol_nameβ the start protocol command π¬ This command starts all induct and outduct tasks for inducts and outducts that have been defined for the indicated CL protocol on the local node.x protocol protocol_nameβ the stop protocol command π This command stops all induct and outduct tasks for inducts and outducts that have been defined for the indicated CL protocol on the local node.
π INDUCT COMMANDS π
a induct protocol_name duct_name 'CLI_command'β the add induct command π This command establishes a "duct" for reception of bundles via the indicated CL protocol. The duct's data acquisition structure is used and populated by the "induct" task whose operation is initiated byCLI_commandat the time the duct is started.c induct protocol_name duct_name 'CLI_command'β the change induct command βοΈ This command changes the command that is used to initiate operation of the induct task for the indicated duct.d induct protocol_name duct_nameβ the delete induct command π This command deletes the induct identified by protocol_name and duct_name. The command will fail if any bundles are currently pending acquisition via this induct.i induct protocol_name duct_nameβ This command will print information (the CLI command) about the induct identified by protocol_name and duct_name.l induct [protocol_name]β If protocol_name is specified, this command lists all inducts established locally for the indicated CL protocol. Otherwise it lists all locally established inducts, regardless of protocol πs induct protocol_name duct_nameβ the start induct command π¬ This command starts the indicated induct task as defined for the indicated CL protocol on the local node.x induct protocol_name duct_nameβ the stop induct command π This command stops the indicated induct task as defined for the indicated CL protocol on the local node.
okay that's part 1 bestie, don't go anywhere π«Ά
π OUTDUCT COMMANDS π
okay bestie, this is the outduct era, the part where we send bundles OUT into the world π each one is a little command letter followed by outduct and then the details. let's go:
a outduct protocol_name duct_name 'CLO_command' [max_payload_length]β the add outduct command β¨ this one sets up a "duct" for sending bundles through the CL protocol you named. the duct's whole data transmission structure gets serviced by the"outduct"task, and that task starts doing its thing whenCLO_commandfires at duct-start time. if you setmax_payload_lengthto zero, that means bundles of literally any size are welcome β and zero is the default, no cap π§’c outduct protocol_name duct_name 'CLO_command' [max_payload_length]β the change outduct command π gives the duct a glow-up: new payload size limit, and a new command for kicking off the outduct task for this duct.d outduct protocol_name duct_nameβ the delete outduct command π deletes the outduct matchingprotocol_nameandduct_name. > heads up bestie: this one FAILS if any bundles are still pending transmission via this outduct. it's giving "can't leave until the queue is empty" πi outduct protocol_name duct_nameβ prints info about the outduct identified byprotocol_nameandduct_name, specifically theCLOcommand πl outduct [protocol_name]β if you passprotocol_name, it lists every outduct set up locally for that CL protocol. noprotocol_name? then it lists ALL locally established outducts, every protocol, no filter, we're nosy πΈs outduct protocol_name duct_nameβ the start outduct command π starts the indicated outduct task on the local node, exactly as defined for that CL protocol.b outduct protocol_name duct_nameβ the block outduct command π« turns OFF bundle transmission via this outduct, and reforwards all the non-critical bundles currently queued up for transmission through it.u outduct protocol_name duct_nameβ the unblock outduct command π«Ά turns transmission back ON for this outduct, and reforwards all the bundles sitting in"limbo"β manifesting that unblocking this outduct lets some of them finally get sent β¨x outduct protocol_name duct_nameβ the stop outduct command π stops the indicated outduct task on the local node, as defined for that CL protocol. periodt.
π EXAMPLES π
real ones, copy-paste energy, no cap:
a scheme ipn 'ipnfw' 'ipnadminep'
declares the "ipn" scheme on the local node π
a protocol udp 1400 100 16384
sets up access to the "udp" convergence layer protocol on the local node, estimating the payload bytes per ultimate (lowest-layer) frame as 1400, with 100 bytes of total overhead (BP, UDP, IP, AOS) per lowest-layer frame, and setting the default nominal data rate to 16384 bytes per second β‘
r 'ipnadmin flyby.ipnrc'
runs the admin program ipnadmin from inside bpadmin π§
π SEE ALSO π
and that's the whole vibe, bestie π this page is from perl v5.24.1, dated 2016-07-07, and it's BPRC(5) β iconic, historic, and now fully explained. slay π
β¨
π¦ where this page comes from
- ubuntu jammy: ion 3.2.1+dfsg-1.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms