{"id":330,"date":"2016-01-08T12:25:33","date_gmt":"2016-01-08T12:25:33","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=330"},"modified":"2016-01-08T12:25:33","modified_gmt":"2016-01-08T12:25:33","slug":"checking-forward-and-reverse-connectivity-of-a-fileserver","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/01\/08\/checking-forward-and-reverse-connectivity-of-a-fileserver\/","title":{"rendered":"Checking Forward and Reverse Connectivity of a Linux Server"},"content":{"rendered":"<p>A good friend of mine is to thank for this excellent pair of one liners. One is to be executed on source, and the other on destination target.<\/p>\n<h2> Testing forward route <\/h2>\n<pre>\r\n\r\n# Machine Source\r\nroot@iup2-web01:\/mnt\/www# dd if=\/dev\/zero bs=1024K count=1024 | nc -v 10.181.164.100 23\r\nConnection to 10.181.164.100 23 port [tcp\/telnet] succeeded!\r\n1024+0 records in\r\n1024+0 records out\r\n1073741824 bytes (1.1 GB) copied, 11.0009 s, 97.6 MB\/s\r\n---\r\n\r\n# Machine Destination\r\nroot@iup2-nfs:~# nc -v -l 23 > \/dev\/null\r\nListening on [0.0.0.0] (family 0, port 23)\r\nConnection from [10.181.162.15] port 23 [tcp\/telnet] accepted (family 2, sport 54373)\r\n\r\n<\/pre>\n<p>However when we try this in reverse, we see a major degradation in the network speed. Here is test with 20MB transfer instead of 1000MB: <\/p>\n<h2> Testing Reverse Route <\/h2>\n<pre>\r\n---\r\n\r\n# Machine Source\r\nroot@iup2-nfs:~# dd if=\/dev\/zero bs=1024K count=20 | nc -v 10.181.162.15 23\r\nConnection to 10.181.162.15 23 port [tcp\/telnet] succeeded!\r\n20+0 records in\r\n20+0 records out\r\n20971520 bytes (21 MB) copied, 144.327 s, 145 kB\/s\r\n---\r\n# Machine Destination\r\nroot@iup2-web01:\/mnt\/www#  nc -v -l 23 > \/dev\/null \r\nListening on [0.0.0.0] (family 0, port 23)\r\nConnection from [10.181.164.100] port 23 [tcp\/telnet] accepted (family 2, sport 56072)\r\n\r\nAs we can see one of the machines has some difficulty. The issue at hand was that there was some problems with the virtual switch daemon on the hypervisor. Thanks to my friend Gospodin for documenting this one and sharing with me how he tested it,\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A good friend of mine is to thank for this excellent pair of one liners. One is to be executed on source, and the other on destination target. Testing forward route # Machine Source root@iup2-web01:\/mnt\/www# dd if=\/dev\/zero bs=1024K count=1024 | &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/01\/08\/checking-forward-and-reverse-connectivity-of-a-fileserver\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=330"}],"version-history":[{"count":2,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/330\/revisions"}],"predecessor-version":[{"id":353,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/330\/revisions\/353"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}