02-18-2018 11:33 PM - edited 03-08-2019 01:55 PM
02-19-2018 12:32 AM
02-19-2018 12:46 AM - edited 02-19-2018 01:02 AM
Thanks Mark for the response.
Reducing transfer speed is not working for me.
ubuntu@ip-172-31-31-79:~$ scp -l 1024 gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 93% 960KB 7.4KB/s - stalled -^C
ubuntu@ip-172-31-31-79:~$ scp -l 1024 gangadhar@52.168.161.119:bootflash:/test1M.pdf .
Password:
test1M.pdf 93% 960KB 26.2KB/s - stalled -^C
ubuntu@ip-172-31-31-79:~$ scp -l 1024 gangadhar@52.168.161.119:flash:/test1M.pdf .
Password:
test1M.pdf 93% 960KB 0.0KB/s - stalled -stest1M.pdf 93% 960KB 0.0KB/s - stalled -
Connection to 52.168.161.119 closed by remote host.
lost connection
ubuntu@ip-172-31-31-79:~$ scp -l 50 gangadhar@52.168.161.119:flash:/test1M.pdf .
Password:
test1M.pdf 93% 960KB 0.2KB/s - stalled -
Any more ideas?
02-19-2018 01:03 AM
02-19-2018 02:16 AM
Thanks Mark for the response.
I think there is no firewall in between my boxes and CISCO CSR. I have tried to download files from CISCO CSR to ubuntu server on AWS and locally deployed Ubuntu box on a Virtual box.
I can upload files to CISCO CSR from my boxes but the download of files has a problem.
File system
Yes. There is a lot of free space in flash.
gangadharcsr#show file systems
File Systems:
Size(b) Free(b) Type Flags Prefixes
- - opaque rw system:
- - opaque rw tmpsys:
* 7835201536 6211211264 disk rw bootflash: flash:
3606913024 3498029056 disk ro webui:
- - opaque rw null:
- - opaque ro tar:
- - network rw tftp:
33554432 33540594 nvram rw nvram:
- - opaque wo syslog:
- - network rw rcp:
- - network rw pram:
- - network rw http:
- - network rw ftp:
- - network rw scp:
- - network rw https:
- - opaque ro cns:
gangadharcsr#
Upload does not have any problem.
Any box --> Cisco CSR :
ubuntu@ip-172-31-31-79:~$ scp /var/www/html/test1M.pdf gangadhar@52.168.161.119:/bootflash:test1M_upload.pdf
Password:
test1M.pdf 100% 1024KB 1.0MB/s 00:01
Connection to 52.168.161.119 closed by remote host.
ubuntu@ip-172-31-31-79:~$ scp /var/www/html/test10M.pdf gangadhar@52.168.161.119:/bootflash:test10M_upload.pdf
Password:
test10M.pdf 100% 10MB 1.1MB/s 00:09
Connection to 52.168.161.119 closed by remote host.
root@kernels:~# scp /var/www/html/test1M.pdf gangadhar@52.168.161.119:/bootflash:test1M_upload.pdf
Password:
test1M.pdf 100% 1024KB 146.3KB/s 00:07
Connection to 52.168.161.119 closed by remote host.
Download from CISCO CSR to any box has a problem.
CISCO CSR --> AWS ubuntu server
ubuntu@ip-172-31-31-79:~$ scp gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 93% 960KB 28.5KB/s - stalled -^C
ubuntu@ip-172-31-31-79:~$ scp -l 1024 gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 93% 960KB 12.5KB/s - stalled -
CISCO CSR --> Local Ubuntu Server on Virtual box
root@kernels:~# scp gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 93% 960KB 15.9KB/s - stalled -^C
root@kernels:~# scp -l 1024 gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 93% 960KB 20.6KB/s - stalled -^
To try with FTP do I need to setup FTP server on CISCO CSR?
02-19-2018 02:56 AM
02-19-2018 03:31 AM - edited 02-19-2018 03:33 AM
Thanks for the response.
I have configured FTP on the router side using the commands that you have given.
configure terminal
ip ftp username cisco
ip ftp password cisco123
exit
show ip sockets on csr side does not show ftp port as listening socket.
Any other way to check whether FTP service is listening or not? something equivalent to netstat -lntop
From the client, I'm trying to connect to the server using telnet but it is not happening.
ubuntu@ip-172-31-31-79:~$ telnet 52.168.161.119 21
Trying 52.168.161.119...
telnet: Unable to connect to remote host: Connection refused
ubuntu@ip-172-31-31-79:~$
PS:I have configured azure security group to allow ftp traffic.
02-19-2018 03:50 AM
02-19-2018 04:08 AM - edited 02-19-2018 04:14 AM
Thanks for the response, Mark.
Instead of using FTP I tried to use HTTP. I have enabled HTTP server on the box and tried to download files using curl. Using Curl I can download files with HTTP protocol.
ubuntu@ip-172-31-31-79:~$ curl -O http://username:password@52.168.161.119/bootflash/test1M.pdf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1024k 100 1024k 0 0 114k 0 0:00:08 0:00:08 --:--:-- 115k
ubuntu@ip-172-31-31-79:~$ curl -O http://username:password@52.168.161.119/bootflash/test10M.pdf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.0M 100 10.0M 0 0 115k 0 0:01:28 0:01:28 --:--:-- 116k
ubuntu@ip-172-31-31-79:~$
With SCP:
ubuntu@ip-172-31-31-79:~$ scp gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 93% 960KB 23.2KB/s - stalled -
Based on above investigation the problem seems to be with SCP protocol implementation only.
Do you think of any possible solutions?
Result of the command that you have given
gangadharcsr#sh run all | i ftp
voice statistics push ftp max-file-size 4294967295
ivr record jitter tftp: 32000
ip ftp passive
ip ftp username cisco
ip ftp password cisco123
no ip tftp claim-netascii
ip tftp blocksize 512
This is happening with other CISCO CSR devices that I have setup on Azure cloud, I do not have AWS cloud account, otherwise, I would have given it a shot.
02-19-2018 04:21 AM
02-19-2018 04:51 AM
Thanks for all your responses, Mark.
I have understood that this might be a problem due to traffic routing through Azure cloud network, not sure though. Do you suggest me to contact Azure cloud team?
Can you have look at this post, which also gives you an insight into another issue?
That will give you an insight into Azure cloud network, they have a load balancer network and that distributes traffic to CSR, this is what I'm thinking of seeing the configuration of security groups.
02-19-2018 05:40 AM
02-19-2018 10:26 AM - edited 02-19-2018 10:32 AM
Thanks for the response Mark. Seems you have corrected the link.
SCP stall issue fixed by using ssh and tcp window-size 50000 based on the response received from Arshad(arshadm@cisco.com). Earlier today, I fired the same post to the ask-csr-azure-pm@cisco.com. I have received following response in the evening.
SCP stall happens if you use ssh window size greater than 60800. Can you reduce the sip windows size and try again. If you reduce the ip ssh windows size to < 60750 you will be fine. Let me know if it works for you. This behavior is documented in one of Closed bug CSCvf89353.
ubuntu@ip-172-31-31-79:~$ ssh gangadhar@52.168.161.119
Password:
gangadharcsr#config t
Enter configuration commands, one per line. End with CNTL/Z.
gangadharcsr(config)#ip ssh window-size 50000
%% Warning: This cli may have impact on CPU. So,use only for SCP
Please configure ip tcp window-size<> with same value,for this CLI to work
gangadharcsr(config)#ip tcp window-size 50000
gangadharcsr(config)#exit
gangadharcsr#exit
Connection to 52.168.161.119 closed by remote host.
Connection to 52.168.161.119 closed.
ubuntu@ip-172-31-31-79:~$ scp gangadhar@52.168.161.119:/bootflash:test1M.pdf .
Password:
test1M.pdf 100% 1024KB 102.4KB/s 00:10
ubuntu@ip-172-31-31-79:~$ scp gangadhar@52.168.161.119:/bootflash:test10M.pdf .
Password:
test10M.pdf 100% 10MB 110.1KB/s 01:33
Connection to 52.168.161.119 closed by remote host.
However, SCP is working now but the speed is still a concern, is this solution recommended?
Reducing window size may further reduce transfer speed?
It took 93 seconds to download 10MB file from CSR and took 2 seconds to download the same file from Apache server which is next to CSR.
ubuntu@ip-172-31-31-79:~$ scp gangadhar@52.168.161.119:/bootflash:test10M.pdf .
Password:
test10M.pdf 100% 10MB 110.1KB/s 01:33
Connection to 52.168.161.119 closed by remote host.
ubuntu@ip-172-31-31-79:~$ scp gangadhar@52.224.179.28:/var/www/html/test10M.pdf .
gangadhar@52.224.179.28's password:
test10M.pdf 100% 10MB 5.0MB/s 00:02
ubuntu@ip-172-31-31-79:~$
PS: when I use 60000 window-size downloads stopped at 98%.
02-20-2018 12:21 AM
02-21-2018 11:42 AM
Thanks, Mark, for the information and explaining about bug system.
I have seen the same SCP stall issue with AWS cloud instances.
AX, BYOL instances have the same issue on versions CSR 1000v XE -16.4, 16.5,16,6 and 16.7(The latest version). Are there any fixes implemented for this issue? @arshadm, apart from the workaround of reducing the window size.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide