Skip to content

Commit c082225

Browse files
Add sample Router connecting to Switcher
1 parent 6672806 commit c082225

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,30 @@ Communication between the Switcher, multiple Routers and multiple Clients is han
3737
| #5 | Router received message instructions from Client to send message over the network | Client -> Router |
3838
| #6 | Router received updated information about current Router | Switcher -> Router |
3939

40+
## Project Functionality
41+
1. Switcher is started to commence the network
42+
2. 3 Routers are started and join the network
43+
3. A client ("Alice") joins the network and is connected by the Switcher
44+
4. A secondary client ("Bob") joins the network and is connected by the Switcher
45+
5. Alice sends a message to Bob
46+
6. The message is forwarded from Alice to Router 1 to Router 2 to Router 3 and finally to Bob.
47+
48+
## Wireshark
49+
The following diagram shows the communication between the Switcher, Routers and Clients.
50+
51+
### Example 1: Router connecting to Network via Switcher
52+
| No. | Time | Source | Destination | Protocol | Length | Info |
53+
| ---- | ---- | ------ | ----------- | -------- | ----- | ---- |
54+
| 5 | 10.382165 | 127.0.0.1 | 127.0.0.1 | UDP | 61 | 65469 -> 51510 |
55+
56+
Payload
57+
| Hexadecimal Payload | Base10 Decoded |
58+
| ------------------- | -------------- |
59+
| 0000 0020 7b 22 74 79 70 65 22 3a 31 2c 22 6d 65 73 73 61 | {"type": 1, "messa} |
60+
| 0010 67 65 22 3a 22 52 6f 75 74 65 72 22 7d | ge":"Rou ter"}
61+
|
62+
63+
Router on port 65469 is sending a message to the Switcher on port 51510 trying to join the network. Type is set to 1, as seen in [Communication Table protocol type 1](#1).
4064

4165
## References
4266
- [0] OpenFlow - https://en.wikipedia.org/wiki/OpenFlow

0 commit comments

Comments
 (0)