diff --git a/README.md b/README.md new file mode 100644 index 0000000..6fb2804 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Usage matplotlib + +## Pre-requirements for usage of matplotlib + +``` +pip install matplotlib +pip install numpy +pip install pyqt5 +``` \ No newline at end of file diff --git a/chart.py b/chart.py new file mode 100644 index 0000000..052fa36 --- /dev/null +++ b/chart.py @@ -0,0 +1,10 @@ +import matplotlib.pyplot as plt +import numpy as np + +x = np.arange(0, 2, 0.2) +# print(x) + +plt.plot(x, x, 'bo') +plt.plot(x, x**2, color='#e35f62', marker='*', linewidth=2) +plt.plot(x, x**3, color='forestgreen', marker='^', markersize=9) +plt.show() diff --git a/config/topo/topo_basicquic b/config/topo/topo_basicquic index eaa5f59..c29c8be 100644 --- a/config/topo/topo_basicquic +++ b/config/topo/topo_basicquic @@ -1,5 +1,5 @@ -clients:1 +clients:5 leftSubnet:10.0. rightSubnet:10.1. -path_c2r_0:10,10,4,0 +path_c2r_0:10,10,4,30 topoType:IoTMultiClient diff --git a/netstat_router_after b/netstat_router_after new file mode 100644 index 0000000..63b6826 --- /dev/null +++ b/netstat_router_after @@ -0,0 +1,39 @@ +Ip: + Forwarding: 1 + 224 total packets received + 224 forwarded + 0 incoming packets discarded + 0 incoming packets delivered + 224 requests sent out +Icmp: + 0 ICMP messages received + 0 input ICMP message failed + ICMP input histogram: + 0 ICMP messages sent + 0 ICMP messages failed + ICMP output histogram: +Tcp: + 0 active connection openings + 0 passive connection openings + 0 failed connection attempts + 0 connection resets received + 0 connections established + 0 segments received + 0 segments sent out + 0 segments retransmitted + 0 bad segments received + 0 resets sent +Udp: + 0 packets received + 0 packets to unknown port received + 0 packet receive errors + 0 packets sent + 0 receive buffer errors + 0 send buffer errors +UdpLite: +TcpExt: + 0 packet headers predicted +IpExt: + InOctets: 146285 + OutOctets: 292570 + InNoECTPkts: 224 diff --git a/netstat_router_before b/netstat_router_before new file mode 100644 index 0000000..1e6e1c1 --- /dev/null +++ b/netstat_router_before @@ -0,0 +1,36 @@ +Ip: + Forwarding: 1 + 0 total packets received + 0 forwarded + 0 incoming packets discarded + 0 incoming packets delivered + 0 requests sent out +Icmp: + 0 ICMP messages received + 0 input ICMP message failed + ICMP input histogram: + 0 ICMP messages sent + 0 ICMP messages failed + ICMP output histogram: +Tcp: + 0 active connection openings + 0 passive connection openings + 0 failed connection attempts + 0 connection resets received + 0 connections established + 0 segments received + 0 segments sent out + 0 segments retransmitted + 0 bad segments received + 0 resets sent +Udp: + 0 packets received + 0 packets to unknown port received + 0 packet receive errors + 0 packets sent + 0 receive buffer errors + 0 send buffer errors +UdpLite: +TcpExt: + 0 packet headers predicted +IpExt: diff --git a/netstat_server_after b/netstat_server_after new file mode 100644 index 0000000..8d23f15 --- /dev/null +++ b/netstat_server_after @@ -0,0 +1,42 @@ +Ip: + Forwarding: 1 + 76 total packets received + 0 forwarded + 0 incoming packets discarded + 76 incoming packets delivered + 148 requests sent out +Icmp: + 14 ICMP messages received + 0 input ICMP message failed + ICMP input histogram: + destination unreachable: 14 + 0 ICMP messages sent + 0 ICMP messages failed + ICMP output histogram: +IcmpMsg: + InType3: 14 +Tcp: + 0 active connection openings + 0 passive connection openings + 0 failed connection attempts + 0 connection resets received + 0 connections established + 0 segments received + 0 segments sent out + 0 segments retransmitted + 0 bad segments received + 0 resets sent +Udp: + 62 packets received + 0 packets to unknown port received + 0 packet receive errors + 148 packets sent + 0 receive buffer errors + 0 send buffer errors +UdpLite: +TcpExt: + 0 packet headers predicted +IpExt: + InOctets: 35533 + OutOctets: 110752 + InNoECTPkts: 76 diff --git a/netstat_server_before b/netstat_server_before new file mode 100644 index 0000000..1e6e1c1 --- /dev/null +++ b/netstat_server_before @@ -0,0 +1,36 @@ +Ip: + Forwarding: 1 + 0 total packets received + 0 forwarded + 0 incoming packets discarded + 0 incoming packets delivered + 0 requests sent out +Icmp: + 0 ICMP messages received + 0 input ICMP message failed + ICMP input histogram: + 0 ICMP messages sent + 0 ICMP messages failed + ICMP output histogram: +Tcp: + 0 active connection openings + 0 passive connection openings + 0 failed connection attempts + 0 connection resets received + 0 connections established + 0 segments received + 0 segments sent out + 0 segments retransmitted + 0 bad segments received + 0 resets sent +Udp: + 0 packets received + 0 packets to unknown port received + 0 packet receive errors + 0 packets sent + 0 receive buffer errors + 0 send buffer errors +UdpLite: +TcpExt: + 0 packet headers predicted +IpExt: