- Mitglied seit
- 2 Dez 2007
- Beiträge
- 8,014
- Punkte für Reaktionen
- 28
- Punkte
- 48
Mit dem Patch aus dem Anhang kann man mit Freetz, uftp (Client+Server+Proxy+Keytool) für die FritzBox kompilieren. Mit der Software kann man multicast-FTP mit UDP machen. Die Software gibt es auch für Windows. Der Client lauscht und der Server sendet die Daten. Ich habe auf der FritzBox den Client lauschen lassen und mit dem Server, vom PC (Linux), die Testdatei im unicast Modus (-U) übetragen:
-lauschender Client:
-übertragender Server:
-lauschender Client:
Code:
/var/mod/root # uftpd -d -n -D /var/media/ftp/uStor01 -L /var/media/ftp/uStor01/uftpd.log -S /var/media/ftp/uStor01/server.list -I 192.168.138.1 -M 232.2.3.1
2010/05/02 18:07:50.123862: UFTP version 3.1 Copyright (C) 2001-2010 Dennis A. Bush
2010/05/02 18:07:50.126848: Loaded key with fingerprint BD:CC:90:79:80:F4:2B:74:08:1B:16:E5:AF:0E:5E:CF:8C:D2:AA:4B
2010/05/02 18:21:42.411166: [B02F99BB:0]: Recieved request from 192.168.138.185
2010/05/02 18:21:42.413642: [B02F99BB:0]: Using private multicast address 0.0.0.0
2010/05/02 18:21:42.488573: [B02F99BB:0]: REGISTER sent
2010/05/02 18:21:42.494248: [B02F99BB:0]: Registration confirmed
2010/05/02 18:21:46.562101: [B02F99BB:0001]: Name of file to receive: test_20mb.bin
2010/05/02 18:21:46.563551: [B02F99BB:0001]: Bytes: 20971520, Blocks: 14524, Sections: 2
2010/05/02 18:21:46.578514: [B02F99BB:0001]: INFO_ACK sent
2010/05/02 18:26:17.644350: [B02F99BB:0001]: Got DONE message for pass 1 section 1
2010/05/02 18:26:17.647903: [B02F99BB:0001]: Sent 383 NAKs for pass 1 section 1
2010/05/02 18:27:27.608120: [B02F99BB:0001]: Got DONE message for pass 1 section 2
2010/05/02 18:27:27.610630: [B02F99BB:0001]: Sent 7 NAKs for pass 1 section 2
2010/05/02 18:27:38.808859: [B02F99BB:0001]: Got DONE message for pass 2 section 1
2010/05/02 18:27:38.811964: [B02F99BB:0001]: Sent 96 NAKs for pass 2 section 1
2010/05/02 18:27:39.779741: [B02F99BB:0001]: Got DONE message for pass 2 section 2
2010/05/02 18:27:39.782105: [B02F99BB:0001]: Sent 0 NAKs for pass 2 section 2
2010/05/02 18:27:46.250170: [B02F99BB:0001]: Got DONE message for pass 3 section 1
2010/05/02 18:27:46.253519: [B02F99BB:0001]: Sent 34 NAKs for pass 3 section 1
2010/05/02 18:27:47.386848: [B02F99BB:0001]: Got DONE message for pass 4 section 1
2010/05/02 18:27:47.388838: [B02F99BB:0001]: File transfer complete
2010/05/02 18:27:47.390726: [B02F99BB:0001]: COMPLETE sent
2010/05/02 18:27:47.394246: [B02F99BB:0]: Got DONE message for pass 1 section 1
2010/05/02 18:27:47.395181: [B02F99BB:0]: Group complete
2010/05/02 18:27:47.396701: [B02F99BB:0]: COMPLETE sent
2010/05/02 18:27:47.496136: [B02F99BB:0]: Group file transfer confirmed
-übertragender Server:
Code:
:~/uftp-3.1> ./uftp -U -H 192.168.138.1 -n -R 500 -S 100 -I 192.168.138.185 ~/test_20mb.bin
UFTP version 3.1 Copyright (C) 2001-2010 Dennis A. Bush
Starting at Sun May 2 18:21:41 2010
Transfer rate: 500 Kbps (62 KB/s)
Wait between packets: 23437 us
Using private multicast address 192.168.138.1 Group ID: B02F99BB
Initializing group
Sending ANNOUNCE 1.1
Received REGISTER from client 192.168.138.1
Late registers:
Sending REG_CONF 2.1
----- test_20mb.bin -----
File ID: 0001 Name: test_20mb.bin
Bytes: 20971520 Blocks: 14524 Sections: 2
Sending FILEINFO 1.1
Received INFO_ACK from client 192.168.138.1
Maximum file transfer time: 990 seconds
Sending file...pass 1
Sending DONE 1.1
Got 383 NAKs for pass 1 section 1 from client 192.168.138.1
Sending DONE 1.1
Got 7 NAKs for pass 1 section 2 from client 192.168.138.1
Average wait time = 23437.42 us
Received 390 distinct NAKs for pass 1
Sending file...pass 2
Sending DONE 1.1
Got 96 NAKs for pass 2 section 1 from client 192.168.138.1
Sending DONE 1.1
Got 0 NAKs for pass 2 section 2 from client 192.168.138.1
Average wait time = 23447.00 us
Received 96 distinct NAKs for pass 2
Sending file...pass 3
Sending DONE 1.1
Sending DONE 2.1
Got 34 NAKs for pass 3 section 1 from client 192.168.138.1
Average wait time = 24068.04 us
Received 34 distinct NAKs for pass 3
Sending file...pass 4
Sending DONE 1.1
Got COMPLETE from client 192.168.138.1
Average wait time = 25079.82 us
Received 0 distinct NAKs for pass 4
Transfer status:
Host: 192.168.138.1 Status: Completed time: 360.813 seconds NAKs: 520
Total elapsed time: 360.813 seconds
Overall throughput: 56.76 KB/s
-----------------------------
Finishing group
Sending DONE 1.1
Got COMPLETE from client 192.168.138.1
Late completions:
Sending DONE_CONF 2.1
Group complete
uftp: Finishing at Sun May 2 18:27:51 2010
Anhänge
Zuletzt bearbeitet: