Skip to content

Commit

Permalink
Released v0.3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
baochunli committed Nov 18, 2023
1 parent cf6fd01 commit f034ec5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ns/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.7"
__version__ = "0.3.8"
15 changes: 8 additions & 7 deletions ns/packet/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@

class Packet:
"""
Packets in ns.py are generally created by packet generators, and will run through
a queue at an output port.
Packets in ns.py are generally created by packet generators, and will
run through a queue at an output port.
Key fields include: generation time, size, flow_id, packet id, source, and
destination. We do not model upper layer protocols, i.e., packets don't contain
a payload. The size (in bytes) field is used to determine its transmission time.
Key fields include: generation time, size, flow_id, packet id, source,
and destination. We do not model upper layer protocols, i.e., packets
don't contain a payload. The size (in bytes) field is used to determine
its transmission time.
We use a float to represent the size of the packet in bytes so that we can compare
to ideal M/M/1 queues.
We use a float to represent the size of the packet in bytes so that we
can compare to ideal M/M/1 queues.
Parameters
----------
Expand Down

0 comments on commit f034ec5

Please sign in to comment.