program that simulates a message (data) being passed down from the Application layer to the Data link layer
$30-50 USD
Suljettu
Julkaistu yli 17 vuotta sitten
$30-50 USD
Maksettu toimituksen yhteydessä
In the TCP / IP model a message ( data ) is passed down from the application layer to the lower layers. The data will be passed down through the Transport, Network ( Internet ), and Data Link Layer. Each layer adds a header to the message. At the receiving end each layer strips off its header. Each hop in the network, the physical address will change while the logical and port address normally stays the same. Write a program that simulates a message (data) being passed down from the Application layer to the Data link layer. You must add the appropriate header at each layer. The message will travel hop by hop to reach its destination. The message may travel through various routers to reach its destination. You must show the packet at the entrance and exit of each hop. You only need to show the headers being added or removed at the sender and receiver. You will need to read the hop information from a file. You can assume the first entry is the sender and the last entry is the receiver. A sample file structure and first entry is the sender and the last entry is the receiver.
## Deliverables
done with C++ A sample file structure and output is shown below. File Structure: HOST A 80 (source port) 134 (destination port) [login to view URL] (source address) [login to view URL] (destination address) 01:02:AC:2C:42:00 (source address) 01:02:AD:2E:41:00 (destination address) ROUTER B [login to view URL] [login to view URL] 01:02:AD:2E:44:00 01:02:AC:2C:45:00 ….. DESTINATION Output: HOST A | DATA | | 80 | 134 | DATA | | [login to view URL] | [login to view URL] | 80 | 134 | DATA | | 01:02:AC:2C:42:00 | 01:02:AD:2E:41:00 | [login to view URL] | [login to view URL] | 80 | 134 | DATA | ROUTER B | 01:02:AC:2C:42:00 | 01:02:AD:2E:41:00 | [login to view URL] | [login to view URL] | 80 | 134 | DATA | | 01:02:AD:2E:44:00 | 01:02:AC:2C:45:00 | [login to view URL] | [login to view URL] | 80 | 134 | DATA | DESTINATION | DATA | | 80 | 134 | DATA | | [login to view URL] | [login to view URL] | 80 | 134 | DATA | | 01:02:AD:2E:44:00 | 01:02:AC:2C:45:00 | [login to view URL] | [login to view URL] | 80 | 134 | DATA |
## Platform
windows XP