File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,29 @@ Thread 1: active sessions 8
393393that is the queues between VPP and the application. Stale data in
394394queues will indicate an issue in VPP's Hoststack
395395
396+ You can drill even more into a specific session by providing the thread
397+ and the index to ` show session ` . Thread and index being the two parts
398+ of the ` [1:92] `  prefix of lines in the output above
399+ 
400+ ```` bash 
401+ $ calicovppctl vppctl -node worker-1 show session thread 1 index 92
402+ [4:2][U] 192.168.189.40:443-> 192.168.189.51:57322           OPENED
403+  index 1 cfg:  flags: CONNECTED, OWNS_PORT
404+  fib_index 10 next_node 0 opaque 0 sw_if_index 9 mss 1472 duration 49395.755
405+  stats: in  dgrams 6073898 bytes 7369777360 err 443928
406+         out dgrams 19722730 bytes 22860676810
407+  transport: flags: descheduled
408+  Rx fifo: cursize 0 nitems 1048576 has_event 0 min_alloc 65536
409+           head 3360283270 tail 3360283270 segment manager 7
410+           vpp session 2 thread 4 app session 9 thread 0
411+           ooo pool 0 active elts newest 4294967295
412+  Tx fifo: cursize 0 nitems 1048576 has_event 0 min_alloc 65536
413+           head 2312808640 tail 2312808640 segment manager 7
414+           vpp session 2 thread 4 app session 9 thread 0
415+           ooo pool 0 active elts newest 0
416+  session: state: ready opaque: 0x9 flags: migrating
417+ ```` 
418+ 
396419## Common commands  
397420
398421For all interface you can verify queue placement on workers
Original file line number Diff line number Diff line change @@ -63,6 +63,28 @@ This reset the error counters
6363calicovppctl vppctl -node worker-1 clear errors 
6464```` 
6565
66+ ## Show session and tcp stats  
67+ 
68+ The following CLI show the global statistics reported by TCP
69+ 
70+ ```` console 
71+ $ calicovppctl vppctl -node worker-1 show tcp stats 
72+ Thread 0: 
73+ Thread 1: 
74+  30 timer expirations 
75+  3 timeout close-wait 
76+  1 reset on close due to unread data 
77+ ```` 
78+ 
79+ The following CLI show the global statistics reported by the session layer
80+ 
81+ ```` console 
82+ $ calicovppctl vppctl -node worker-1 show session  stats 
83+ Thread 0: 
84+ Thread 1: 
85+  36 ip port pair already listened on 
86+ ```` 
87+ 
6688## Show startup logs  
6789
6890The following CLI will output interesting information if VPP
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments