[Ndn-lib] ccn_put/pyndn.handle.put(co)

Burke, Jeff jburke at remap.ucla.edu
Mon Oct 21 10:09:46 PDT 2013


Hi Xiaoke,

Before we try to debug interactively, can you let us know more information about how the failure manifests itself?   Any errors at the publishing end, or just interests go unanswered?   Have you tried using Wireshark or daemon logging to see what's going on?

Thanks,
Jeff

From: Xiaoke Jiang <shock.jiang at gmail.com<mailto:shock.jiang at gmail.com>>
Date: Mon, 14 Oct 2013 17:06:01 +0800
To: Alex Afanasyev <alexander.afanasyev at ucla.edu<mailto:alexander.afanasyev at ucla.edu>>
Cc: <Burke>, Jeff Burke <jburke at remap.ucla.edu<mailto:jburke at remap.ucla.edu>>, "ndn-lib at lists.cs.ucla.edu<mailto:ndn-lib at lists.cs.ucla.edu>" <ndn-lib at lists.cs.ucla.edu<mailto:ndn-lib at lists.cs.ucla.edu>>
Subject: Re: [Ndn-lib] ccn_put/pyndn.handle.put(co)

Hi I have set up a environment between two nodes, would you like to debug with it? I can send you the account.

thanks

My Regards,
________________________________
Xiaoke (Shock) Jiang (蒋小可)

Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, P.R.China. 100084

On Monday, October 14, 2013 at 4:19 PM, Xiaoke Jiang wrote:

Hi Alex,
    I found that. Thus, I use the some size Data, such as ~5000Bytes.

thanks

My Regards,
________________________________
Xiaoke (Shock) Jiang (蒋小可)

Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, P.R.China. 100084

On Monday, October 14, 2013 at 4:18 PM, Alex Afanasyev wrote:

Hi Xiaoke,

Are you trying to "put" a large Data packet (more than 8k bytes)?  If so, then it is intended, since Data packet should be small, ideally within size of MTU.

---
Alex

On Oct 14, 2013, at 10:21 AM, Xiaoke Jiang <shock.jiang at gmail.com<mailto:shock.jiang at gmail.com>> wrote:

Thank you, Jeff.

#override
    def upcall(self, kind, upcallInfo):



        if kind != pyndn.UPCALL_INTEREST:
            log.warn("get kind: %s" %str(kind))
            return pyndn.RESULT_OK



        co = self.prepare(upcallInfo)
#         try:
#             co = self.prepare(upcallInfo)
#         except:
#             thetype, value, traceback = sys.exc_info()
#             log.error("get exception: %s, %s, %s" %(thetype, value, traceback))
#             co = None



        if co == None:
            log.warn("co == None")
            pass
        else:
            rst = self.handle.put(co)
            log.warn("put content: %s, result: %s" %(co.name<http://co.name>, rst))
            #("content: %s" %(co.name<http://co.name>))



the self.prepare() just reads data from file and returns Data/Nack(no this data)/None(illegal request).

In fact, this whole application is quite complicated, I'm deploying it on two ends, but I met the problem of pyndn's installing.

thanks

My Regards,
________________________________
Xiaoke (Shock) Jiang (蒋小可)

Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, P.R.China. 100084

On Monday, October 14, 2013 at 1:26 AM, Burke, Jeff wrote:

Dear Xiaoke,
Can you please send a code sample of your usage, or full python files so we can test it here?
Thank you,
Jeff

From: Xiaoke Jiang <shock.jiang at gmail.com<mailto:shock.jiang at gmail.com>>
Date: Sat, 12 Oct 2013 13:31:09 +0800
To: <ndn-lib at lists.cs.ucla.edu<mailto:ndn-lib at lists.cs.ucla.edu>>
Subject: [Ndn-lib] ccn_put/pyndn.handle.put(co)

Dear all,
I am using pyndn to transmit data, however, I met a serious issue, if the file is big, then every time the transmission will failed. More precisely, after about 2MB is transmitted, ccn_put will fail to transmit any more.
       Does anyone meet this issue before? And any hints?

thanks

My Regards,
________________________________
Xiaoke (Shock) Jiang (蒋小可)

Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, P.R.China. 100084
_______________________________________________ Ndn-lib mailing list Ndn-lib at lists.cs.ucla.edu<mailto:Ndn-lib at lists.cs.ucla.edu> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-lib

_______________________________________________
Ndn-lib mailing list
Ndn-lib at lists.cs.ucla.edu<mailto:Ndn-lib at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-lib



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-lib/attachments/20131021/b49e3342/attachment.html>


More information about the Ndn-lib mailing list