Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored TCPPacketGenerator. #28

Merged
merged 10 commits into from
Feb 6, 2024
Merged

Conversation

cying17
Copy link
Contributor

@cying17 cying17 commented Feb 6, 2024

This PR refactors TCPPacketGenerator with adding AppPacketGenerator to send packets from application-level flow.

Description

At the beginning of a simulation, TCPPacketGenerator starts DistPacketGenerator as AppPacketGenerator.

AppPacketGenerator sends packets from application-layer flow to TCPPacketGenerator. TCPPacketGenerator updates self.send_buffer += packet.size after receiving a packet from AppPacketGenerator.

How has this been tested?

python examples/tcp.py

Types of changes

  • Bug fix (non-breaking change which fixes an issue) Fixes #
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@baochunli baochunli merged commit 58fe750 into TL-System:main Feb 6, 2024
1 check passed
@cying17 cying17 deleted the tcp_refactor branch February 6, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants