-5

I am writing discrete event-driven simulator to measure time between sending datasets over network.

If multiple processes sends n packets through network they (packets) will go one after one through link or they will simultaneously share network via tcp/ip protocol?

  • 6
    You're getting into the fundamentals of networking and multiplexing here. There are as many different answers as there are modes of transportation. [CDMA](https://en.wikipedia.org/wiki/Code-division_multiple_access), [CSMA](https://en.wikipedia.org/wiki/Carrier-sense_multiple_access), [TDD, FDD](https://en.wikipedia.org/wiki/Duplex_(telecommunications))... – Mark Henderson Dec 20 '17 at 16:24
  • 1
    Sounds like you have A LOT of reading to do before you start writing your 'simulator'... – Daniel Widrick Dec 20 '17 at 16:42
  • @DanielWidrick advices welcome – Kenenbek Arzymatov Dec 20 '17 at 16:44
  • 1
    Best advice is to study networking concepts from books dedicated to the subject. – Tero Kilkanen Dec 20 '17 at 22:17

1 Answers1

1

On the physical level (and layer), all traffic is sequential. When several applications or processes send data at the same time the transmissions are queued and sent one after the other at the OS's or the driver's discretion. The network stack works as a multiplex for virtually unlimited logical connections over a single network card.

When using bonded/aggregated interfaces or multiple NICs with load balancing the traffic can be somewhat parallel (not for a specific source-destination flow, only for multiple flows).

Zac67
  • 10,320
  • 2
  • 12
  • 32