Thursday, August 24, 2017

bash shell infinite loop example

https://www.cyberciti.biz/faq/bash-infinite-loop/

iperf TOS option



CLIENT SPECIFIC OPTIONS

-S, --tos N               set the IP 'type of service'


The type-of-service for outgoing packets. (Many routers ignore the TOS field.)
You may specify the value in hex with a '0x' prefix, in octal with a '0' prefix, or in decimal.
For example, '0x10' hex = '020' octal = '16' decimal.
The TOS numbers specified in RFC 1349 are:

    IPTOS_LOWDELAY     minimize delay        0x10
    IPTOS_THROUGHPUT   maximize throughput   0x08
    IPTOS_RELIABILITY  maximize reliability  0x04
    IPTOS_LOWCOST      minimize cost         0x02

   0     1      2       3       4       5       6       7
+-----+-----+-----+-----+-----+-----+-----+-----+
 |   PRE               |                                   |  M   |
 |   CEDENCE    |           TOS                 |  B   |
 |                          |                                   |  Z   |
+-----+-----+-----+-----+-----+-----+-----+-----+

"PRECEDENCE" is intended to denote the importance or priority of the datagram.

The last field, labeled "MBZ" (for "must be zero") above, is currently unused.

1000   --   minimize delay ( + MBZ (0) = 1000 0 = 1 0000 = 0x10)
0100   --   maximize throughput ( + MBZ (0) = 0100 0 = 0 1000 = 0x08)
0010   --   maximize reliability ( + MBZ (0) = 0010 0 = 0 0100 = 0x04)
0001   --   minimize monetary cost ( + MBZ (0) = 0001 0 = 0 0010 = 0x02)
0000   --   normal service ( + MBZ (0) = 0000 0 = 0 0000 = 0x00)
* bit 3: minimize delay, bit 4: maximize throughput, bit 5: maximize reliability

PRECEDENCE
000 Routine
001 Priority
010 Immediate
011 Flash
100 FlashOverride
101 Critical
110 InterNetwork Control
111 Network Control


A. DOD DD173 Precedence/Priority Filed Explanations (Lowest-Highest):

Routine: (R) “…is used for all messages that justify transmission by electrical means unless the message delivery is of sufficient urgency to require higher precedence.”
Priority: (P) “…is used for all messages that require expeditious action by the addressee(s) and/or furnish essential information for the conduct of ongoing operations.”
Immediate (O) “…is reserved for messages relating to situations that gravely affect the security of National/Allied forces or populace.”
Flash (Z) “…is reserved for initial enemy contact messages or operational combat messages of extreme urgency.”
Flash Override (X) “… is reserved for messages relating to the outbreak of hostilities and/or detonation of nuclear devices.”
CRITIC/ECP “…stands for “Critical and Emergency Call Processing” and should only be used for authorized emergency communications, for example in the United States Government Emergency Telecommunications Service (GETS), the United Kingdom Government Telephone Preference Scheme (GTPS) and similar government emergency preparedness or reactionary implementations elsewhere.”
1. Network Control “…is intended to be used within a network only. The actual use and control of that designation is up to each network.”

2. Internetwork Control “…is intended for use by gateway control originators only.”

TOS (Dec)TOS (Hex)TOS (Bin)TOS Precedence (Bin)TOS Precedence (Dec)TOS Precedence NameTOS Delay flagTOS Throughput flagTOS Reliability flagDSCP (Bin)DSCP (Hex)DSCP (Dec)DSCP/PHB Class
00x00000000000000Routine0000000000x000none
40x04000001000000Routine0010000010x011none
80x08000010000000Routine0100000100x022none
120x0C000011000000Routine0110000110x033none
160x10000100000000Routine1000001000x044none
320x20001000000011Priority0000010000x088cs1
400x28001010000011Priority0100010100x0A10af11
480x30001100000011Priority1000011000x0C12af12
560x38001110000011Priority1100011100x0E14af13
640x40010000000102Immediate0000100000x1016cs2
720x48010010000102Immediate0100100100x1218af21
800x50010100000102Immediate1000101000x1420af22
880x58010110000102Immediate1100101100x1622af23
960x60011000000113Flash0000110000x1824cs3
1040x68011010000113Flash0100110100x1A26af31
1120x70011100000113Flash1000111000x1C28af32
1200x78011110000113Flash1100111100x1E30af33
1280x80100000001004FlashOverride0001000000x2032cs4
1360x88100010001004FlashOverride0101000100x2234af41
1440x90100100001004FlashOverride1001001000x2436af42
1520x98100110001004FlashOverride1101001100x2638af43
1600xA0101000001015Critical0001010000x2840cs5
1760xB0101100001015Critical1001011000x2C44voice-admit
1840xB8101110001015Critical1101011100x2E46ef
1920xC0110000001106InterNetwork Control0001100000x3048cs6
2240xE0111000001117Network Control0001110000x3856cs7