Identifying an IP-package within a store

11 views
Skip to first unread message

Haminou M.

unread,
Dec 1, 2016, 6:05:57 PM12/1/16
to project-voldemort

We are currently working  in project where we want to use Voldemort to store some ip packages.

1) What would be the best way to identify a single package ? we thought about a key which consist of the time..since this would be unique

Thank you very much in advance!

Brendan Harris (a.k.a. stotch on irc.oftc.net)

unread,
Dec 1, 2016, 9:29:17 PM12/1/16
to project-voldemort
Hello,


On Thursday, December 1, 2016 at 3:05:57 PM UTC-8, Haminou M. wrote:

We are currently working  in project where we want to use Voldemort to store some ip packages.

1) What would be the best way to identify a single package ? we thought about a key which consist of the time..since this would be unique

This is a data modeling/structure question, not really a Voldemort question. This question is probably best answered by you, yourself, not us. But, if you can clarify what you mean by "ip packages" (I have never heard this term before), perhaps we can give you some pointers on how to ensure key uniqueness without accidental overwrites.

Brendan

Haminou M.

unread,
Dec 2, 2016, 4:34:18 AM12/2/16
to project-voldemort
Hi Brendan,

thank you for fast reply. I agree on that point with you that it's a data modelling question. I meant ip packet (TCP/IP packets).

Brendan Harris (a.k.a. stotch on irc.oftc.net)

unread,
Dec 4, 2016, 2:46:50 PM12/4/16
to project-voldemort
Hi Haminou,


On Friday, December 2, 2016 at 1:34:18 AM UTC-8, Haminou M. wrote:
Hi Brendan,

thank you for fast reply. I agree on that point with you that it's a data modelling question. I meant ip packet (TCP/IP packets).

I see. Well, in that case, time would not be unique enough. You could do a union of timestamp+TCP sequence number. But, even that might not be unique enough. You could still have a collision with that formula. Ultimately, it depends on what you care about and how you want to be able to recall the information. What is the most relevant piece of information in the packet? Source port? Destination port? TCP Flag? You might want the key to be a union of the most relevant pieces of information.

Perhaps if you explained the use case a bit, we could recommend an ideal way of storing and recalling the information.

Brendan

Haminou M.

unread,
Dec 5, 2016, 5:54:12 AM12/5/16
to project-voldemort
We decided to do a union of timestamp (micros) and packet length. Having someone replying to a question is always helpful. Thank you very much!
Reply all
Reply to author
Forward
0 new messages