The problem statement is to write a program to simulate an Ethernet network on a
ID: 3636555 • Letter: T
Question
The problem statement is to write a program to simulate an Ethernet network on a SINGLE MACHINE and code it in C language. The varius ethernet stations will be modelled as processes running on the same machine, each process representing a "network card" of each Ethernet station. Now, a process will send some message (say just a few bytes for simplicity) to another process, which will contain the destination and source address and some data. This sending will represent ethernet communication. Collision on the ethernet cable wil be detected by CSMACD (carrier Sense Multiple Access Collission Detection) method where the process reads the bus to see if some other process is transitting or not and accordingly either transmits or waits for a random amount of time. This is how it as to be simulated.Now the question is : how to simulate the common bus or "cable" of the ethernet?
Explanation / Answer
varius ethernet stations will be modelled as processes running on the same machine, each process representing a "network card" of each Ethernet station. Now, a process will send some message (say just a few bytes for simplicity) to another process, which will contain the destination and source address and some data. This sending will represent ethernet communication. Collision on the ethernet cable wil be detected by CSMACD (carrier Sense Multiple Access Collission Detection) method where the process reads the bus to see if some other process is transitting or not and accordingly either transmits or waits for a random amount of time.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.