From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.0.74; helo=eur01-he1-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0074.outbound.protection.outlook.com [104.47.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9FDA421CF58A3 for ; Thu, 5 Oct 2017 10:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FlYcHZRM36QmkJsHoFdJS0nCrVWvSeGsAKK38TSIq3s=; b=F7p+4cZJy7LaqmOUUL6ZeWKFqLmgDZ3K+ex2TWjn4RPimpjWC5geHYD54vxKpRwXA/C5RwoyNbbwE1q2zYzsz4dCPP3t8yyO1/SvezlTXqVqYeuSrJRzP5IViY5KGR9Sw7ueqhmV8RuVBZ87PJjft+WhXBnxvA8AqbBlUAs9iAs= Received: from DB4PR04MB299.eurprd04.prod.outlook.com (10.141.239.21) by DB4PR04MB298.eurprd04.prod.outlook.com (10.141.239.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 5 Oct 2017 17:25:48 +0000 Received: from DB4PR04MB299.eurprd04.prod.outlook.com ([fe80::e4b0:da81:40ba:c125]) by DB4PR04MB299.eurprd04.prod.outlook.com ([fe80::e4b0:da81:40ba:c125%18]) with mapi id 15.20.0077.018; Thu, 5 Oct 2017 17:25:48 +0000 From: Vabhav Sharma To: "siyuan.fu@intel.com" , "edk2-devel@lists.01.org" Thread-Topic: MTFTP file transfer timeout error Thread-Index: AdMziPrTGH6+Na2GSdiTFpRwROFIcwA0L1PgAPyz/iABa4zI4A== Date: Thu, 5 Oct 2017 17:25:48 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [180.151.238.72] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB4PR04MB298; 6:GbLxWIO5tCjEEzm14Pz5V+4L/M52YFF1rCy0TujQabgy21//6mA/QOHkFYQTPwx5Lj1gvbPJMw1iAtkyGlUM3Bl97ikHEY3VY7D+XJp418cndWX+e19LxUUArc0+slinLPnMx2YTMpatmcnoO2MD+woz4pF6r/UR5IVw3oVV0gnK9AuuM03sxbpXPMDDvuPRvKArQzVxVmVuXR32jb09qRJr3WGU36T/ZHsAsqRqwbxDzQv+qWc3O+vT/kCvebvwl4na+3zNhIoKEm9LjL16CRUycivbBYW+WoHaF0AIbIs1+M94N7DKBeBl5tqPanzPYYgpLLmHqJviDzJmtEGBEg==; 5:iMBSRf0p6YXCKQlVhiKi05Xy9NfKzx89UNRcCnhVIplcvaB54W1CaWzZCtCfXBaJNVMmI1yUPKcQ6r2WlDPNLr7RXzVBSJtKlGjljXqNIEqYIiBe1/j6ydbPwgJ9m2pSJZF2HAaeUkRF8CIQA4c36A==; 24:hsD58zEd/abFjhj3leThaIieojW3Wcj2FJQqqENnXiC9BKPcFjz/tfYqmGPQfiNtLYxVA+j8pYv/Zaa9ncmQrL1sD7jLWNTE+D2WgRdtgww=; 7:15DyjmEDQRGcZpl9yD62+P8qOENluHeddyPddKXjMpIPO5U5XmZpreTscxKhkDNYp6Wgg+3GNMGCp3UtOhV5cU3Pa/+faKk1c+QJyTpimoDM+iQkebmJG2HbxTMQReNzgx6l+0aAhHlWZtWkNFAlhCEZiKC+TSIy1QsZhU54OOl8kNptM4TTPLCzJjqY0mVT6ot4vtMNZQqY3NFCjN4Qr/mTUpT6IaNV74/6JvLvKYI= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: c9233898-a665-4b12-cc64-08d50c161ebf x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DB4PR04MB298; x-ms-traffictypediagnostic: DB4PR04MB298: x-exchange-antispam-report-test: UriScan:(158342451672863)(162533806227266)(228905959029699); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB4PR04MB298; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB4PR04MB298; x-forefront-prvs: 04519BA941 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(39860400002)(377454003)(199003)(53754006)(53474002)(189002)(13464003)(6436002)(2501003)(5660300001)(106356001)(3660700001)(3280700002)(105586002)(86362001)(6116002)(97736004)(5250100002)(66066001)(2906002)(54356999)(33656002)(76176999)(413944005)(966005)(50986999)(101416001)(478600001)(14454004)(5890100001)(102836003)(53936002)(3846002)(6506006)(229853002)(2950100002)(53546010)(74316002)(7696004)(68736007)(2900100001)(25786009)(99286003)(9686003)(6306002)(8936002)(55016002)(110136005)(53366004)(53376002)(6246003)(81166006)(189998001)(8676002)(81156014)(305945005)(217423001)(7736002)(316002)(10090945008)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB298; H:DB4PR04MB299.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2017 17:25:48.6086 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB298 Subject: Re: MTFTP file transfer timeout error X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Oct 2017 17:22:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Dear Experts, I traced that timeout error for different block size during file transfer u= sing tftp(rrq opcode) is returned from function Mtftp4OnTimerTick() TFTP = layer in UEFI network stack. Mtftp4OnTimerTick() // // Retransmit the packet if haven't reach the maxmium retry count, // otherwise exit the transfer. // if (++Instance->CurRetry < Instance->MaxRetry) { Mtftp4Retransmit (Instance); Mtftp4SetTimeout (Instance); } else { Mtftp4CleanOperation (Instance, EFI_TIMEOUT); //Timeout is= set continue; } Once this is set, It gets populated to downloadfile() function in tftp shel= lpkg library. There seems to be issue(corruption) with tfp client state machine=20 -Not sending ACK for received data blocks -Sending duplicate ACK If server don't receive ACK, It stops sending data packets and timeout occu= rs after maximum retry. Please suggest if this is new or known issue to be fixed? Regards, Vabhav -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Vabh= av Sharma Sent: Thursday, September 28, 2017 5:04 PM To: siyuan.fu@intel.com Cc: edk2-devel@lists.01.org; edk2-devel Subject: Re: [edk2] MTFTP file transfer timeout error [This sender failed our fraud detection checks and may not be who they appe= ar to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] Hello Fu Siyuan, I see that blocksize option with tftp command is introduced with commit 2be= 45bfe2779043bc3566e879e7ec279412012dc. Could you please help me clarify with the timeout error behavior observed i= n previous mail Please note the behavior varies for different file type(Attached sheet) Reg= ards, Vabhav -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Vabh= av Sharma Sent: Saturday, September 23, 2017 4:21 PM To: edk2-devel@lists.01.org; edk2-devel Subject: [edk2] MTFTP file transfer timeout error [This sender failed our fraud detection checks and may not be who they appe= ar to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] Hi All, I am facing timeout error with file transfer using tftp on UEFI shell with = ARM based SoCs Command used: tftp -s -i = File transfer with file size greater 50 or 60 MB is returning timeout(Also = depends on type of file like data file, ASCII file, boot sector) I verified by playing around with blocksize from 32K to 42K for different f= ile size(100MB,200MB,500MB) and identify that increasing the block size for= large file size helps with successful transfer. File transfer is always successful with 1K blocksize but file transfer time= is increased. Please suggest if there is any link between block size with file size or an= yone faced such issue? I assume expectation is to use any blocksize from 51= 2(default) to 64K. Regards, Vabhav _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel