<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Malgun Gothic",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-CH" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">why not using ndnputfile? Encoding is done automatically.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">ndnputfile reponame ndnname filename:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">ndnputfile /localhost/repo-ng /ndn/ch/unibas/hello hello.txt<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">Interesting as well would be how to delete files from the repo? I still do it by directly manipulating the database. Seems that there is no tool
 around…?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">Chengyu, don't you have problems to retrieve so large files from the repo? I have already problems with files around 50MB. The developers told
 me that it might be a memory issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US">Urs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Malgun Gothic",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Ndn-interest [mailto:ndn-interest-bounces@lists.cs.ucla.edu]
<b>Im Auftrag von </b>Alex Afanasyev<br>
<b>Gesendet:</b> Mittwoch, 8. April 2015 02:03<br>
<b>An:</b> Chengyu Fan<br>
<b>Cc:</b> ndn-interest@lists.cs.ucla.edu<br>
<b>Betreff:</b> Re: [Ndn-interest] Tcp Bulk Insert Repo Insertion Protocol in NDN-repo-ng<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span lang="EN-US">On Apr 7, 2015, at 5:01 PM, Chengyu Fan <</span><a href="mailto:chengyu@cs.colostate.edu"><span lang="EN-US">chengyu@cs.colostate.edu</span></a><span lang="EN-US">> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Okay, so the TcpBulkInsert is to push the </span><span lang="EN-US" style="font-size:9.5pt">NDN packet format encoding data packets into the repo.</span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt">If need to insert the raw data, I must convert them into NDN packet format encoding in advance. Correct?</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Yes.<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Tue, Apr 7, 2015 at 5:38 PM, Alex Afanasyev <</span><a href="mailto:alexander.afanasyev@ucla.edu" target="_blank"><span lang="EN-US">alexander.afanasyev@ucla.edu</span></a><span lang="EN-US">> wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">TcpBulkInsert is not really a protocol, rather a socket that accepts a stream of data packets.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Assuming file bulk-data.tlv contains a collection of data packets in NDN packet format encoding (just piled up, one after another one), you can use ‘nc’ command to push them into the repo<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">nc localhost 7376 < bulk-data.tlv<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">—<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#888888">Alex<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#888888"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span lang="EN-US">On Apr 7, 2015, at 3:28 PM, Chengyu Fan <</span><a href="mailto:chengyu@cs.colostate.edu" target="_blank"><span lang="EN-US">chengyu@cs.colostate.edu</span></a><span lang="EN-US">> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Do anyone know the "</span><strong><span lang="EN-US" style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#484848">Tcp Bulk Insert Repo Insertion Protocol</span></strong><span lang="EN-US">" in NDN-repo-ng?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">We have lots of data need to insert into the repository, and each one typically contains about 1.2GB.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">According to the wiki (</span><a href="http://redmine.named-data.net/projects/repo-ng/wiki" target="_blank"><span lang="EN-US">http://redmine.named-data.net/projects/repo-ng/wiki</span></a><span lang="EN-US">), the "</span><strong><span lang="EN-US" style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#484848">Tcp
 Bulk Insert Repo Insertion Protocol</span></strong><span lang="EN-US">" might be the right option.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">However, the wiki doesn't contain the protocol specification, and there is no tool for this protocol either ...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Chengyu<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US">_______________________________________________<br>
Ndn-interest mailing list<br>
</span><a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank"><span lang="EN-US">Ndn-interest@lists.cs.ucla.edu</span></a><span lang="EN-US"><br>
</span><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" target="_blank"><span lang="EN-US">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</span></a><span lang="EN-US"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>