Finalizing interest limits. Now everything seem to work.
To work correctly, a lot of parameters have to be adjusted, including average
contentObject size, averageRTT, queues on nodes.
diff --git a/examples/content-object-example.cc b/examples/content-object-example.cc
index fa9700e..8272e86 100644
--- a/examples/content-object-example.cc
+++ b/examples/content-object-example.cc
@@ -19,38 +19,38 @@
int
main (int argc, char *argv[])
{
- LogComponentEnable ("ContentObjectHeaderExample", LOG_ALL);
- LogComponentEnable ("Packet", LOG_ALL);
+ LogComponentEnable ("ContentObjectHeaderExample", LOG_ALL);
+ LogComponentEnable ("Packet", LOG_ALL);
- NS_LOG_INFO ("Test started");
+ NS_LOG_INFO ("Test started");
- Packet::EnablePrinting ();
- Packet::EnableChecking ();
- Packet packet (10);
+ Packet::EnablePrinting ();
+ Packet::EnableChecking ();
+ Packet packet (10);
- CcnxContentObjectHeader header;
- CcnxContentObjectTail trailer;
+ CcnxContentObjectHeader header;
+ CcnxContentObjectTail trailer;
- Ptr<CcnxNameComponents> testname = Create<CcnxNameComponents> ();
- (*testname) ("1");
- header.SetName(testname);
+ Ptr<CcnxNameComponents> testname = Create<CcnxNameComponents> ();
+ (*testname) ("1");
+ header.SetName(testname);
- NS_LOG_INFO ("Source: \n" << header << trailer);
+ NS_LOG_INFO ("Source: \n" << header << trailer);
- packet.AddHeader (header);
- packet.AddTrailer (trailer);
+ packet.AddHeader (header);
+ packet.AddTrailer (trailer);
- // NS_LOG_INFO ("Deserialized packet: \n" << packet);
+ // NS_LOG_INFO ("Deserialized packet: \n" << packet);
- NS_LOG_INFO ("Removing and deserializing individual headers");
+ NS_LOG_INFO ("Removing and deserializing individual headers");
- CcnxContentObjectHeader dst_header;
- CcnxContentObjectTail dst_trailer;
+ CcnxContentObjectHeader dst_header;
+ CcnxContentObjectTail dst_trailer;
- packet.RemoveHeader (dst_header);
- packet.RemoveTrailer (dst_trailer);
+ packet.RemoveHeader (dst_header);
+ packet.RemoveTrailer (dst_trailer);
- NS_LOG_INFO ("Target: \n" << dst_header << dst_trailer);
+ NS_LOG_INFO ("Target: \n" << dst_header << dst_trailer);
- return 0;
+ return 0;
}