2019 SDN上机第3次作业

2019 SDN上机第3次作业

1. 利用Mininet仿真平台构建如下图所示的网络拓扑,配置主机h1和h2的IP地址(h1:10.0.0.1,h2:10.0.0.2),测试两台主机之间的网络连通性

建立拓扑并设置
2019 SDN上机第3次作业_第1张图片
建立成功
2019 SDN上机第3次作业_第2张图片

2. 利用Wireshark工具,捕获拓扑中交换机与控制器之间的通信数据,对OpenFlow协议类型的各类报文(hello, features_request, features_reply, set_config, packet_in, packet_out等)进行分析,对照wireshark截图写出你的分析内容。

hello
控制器6633端口(我最高能支持OpenFlow 1.0) ---> 交换机43064端口
2019 SDN上机第3次作业_第3张图片
交换机43064端口(我最高能支持OpenFlow 1.3)--- 控制器6633端口
2019 SDN上机第3次作业_第4张图片
于是双方建立连接,并使用OpenFlow 1.0

Features Request
控制器6633端口 ---> 交换机43063端口
2019 SDN上机第3次作业_第5张图片

Set Config
控制器6633端口---> 交换机43063端口
2019 SDN上机第3次作业_第6张图片

Features Reply
交换器43063端口---> 交换机6633端口
2019 SDN上机第3次作业_第7张图片
报文内容

OpenFlow 1.0
    .000 0001 = Version: 1.0 (0x01)
    Type: OFPT_FEATURES_REPLY (6)
    Length: 176
    Transaction ID: 1905328497
    Datapath unique ID: 0x0000000000000002
        MAC addr: 00:00:00_00:00:00 (00:00:00:00:00:00)
        Implementers part: 0x0002
    n_buffers: 0
    n_tables: 254
    Pad: 000000
    capabilities: 0x000000c7
        .... .... .... .... .... .... .... ...1 = Flow statistics: True
        .... .... .... .... .... .... .... ..1. = Table statistics: True
        .... .... .... .... .... .... .... .1.. = Port statistics: True
        .... .... .... .... .... .... .... 0... = Group statistics: False
        .... .... .... .... .... .... ..0. .... = Can reassemble IP fragments: False
        .... .... .... .... .... .... .1.. .... = Queue statistics: True
        .... .... .... .... .... ...0 .... .... = Switch will block looping ports: False
    actions: 0x00000fff
        .... .... .... .... .... .... .... ...1 = Output to switch port: True
        .... .... .... .... .... .... .... ..1. = Set the 802.1q VLAN id: True
        .... .... .... .... .... .... .... .1.. = Set the 802.1q priority: True
        .... .... .... .... .... .... .... 1... = Strip the 802.1q header: True
        .... .... .... .... .... .... ...1 .... = Ethernet source address: True
        .... .... .... .... .... .... ..1. .... = Ethernet destination address: True
        .... .... .... .... .... .... .1.. .... = IP source address: True
        .... .... .... .... .... .... 1... .... = IP destination address: True
        .... .... .... .... .... ...1 .... .... = IP ToS (DSCP field, 6 bits): True
        .... .... .... .... .... ..1. .... .... = TCP/UDP source port: True
        .... .... .... .... .... .1.. .... .... = TCP/UDP destination port: True
        .... .... .... .... .... 1... .... .... = Output to queue: True
    Port data 1
        Port number: 65534
        HW Address: e2:75:3e:9e:53:95 (e2:75:3e:9e:53:95)
        Port Name: s2
        Config flags: 0x00000001
            .... .... .... .... .... .... .... ...1 = Port is administratively down: True
            .... .... .... .... .... .... .... ..0. = Disable 802.1D spanning tree on port: False
            .... .... .... .... .... .... .... .0.. = Drop all packets except 802.1D spanning tree packets: False
            .... .... .... .... .... .... .... 0... = Drop received 802.1D STP packets: False
            .... .... .... .... .... .... ...0 .... = Do not include this port when flooding: False
            .... .... .... .... .... .... ..0. .... = Drop packets forwarded to port: False
            .... .... .... .... .... .... .0.. .... = Do not send packet-in msgs for port: False
        State flags: 0x00000001
            .... .... .... .... .... .... .... ...1 = No physical link present: True
        Current features: 0x00000000
            .... .... .... .... .... .... .... ...0 = 10 Mb half-duplex rate support: False
            .... .... .... .... .... .... .... ..0. = 10 Mb full-duplex rate support: False
            .... .... .... .... .... .... .... .0.. = 100 Mb half-duplex rate support: False
            .... .... .... .... .... .... .... 0... = 100 Mb full-duplex rate support: False
            .... .... .... .... .... .... ...0 .... = 1 Gb half-duplex rate support: False
            .... .... .... .... .... .... ..0. .... = 1 Gb full-duplex rate support: False
            .... .... .... .... .... .... .0.. .... = 10 Gb full-duplex rate support: False
            .... .... .... .... .... .... 0... .... = Copper medium: False
            .... .... .... .... .... ...0 .... .... = Fiber medium: False
            .... .... .... .... .... ..0. .... .... = Auto-negotiation: False
            .... .... .... .... .... .0.. .... .... = Pause: False
            .... .... .... .... .... 0... .... .... = Asymmetric pause: False
        Advertised features: 0x00000000
        Features supported: 0x00000000
        Features advertised by peer: 0x00000000
    Port data 2
        Port number: 1
        HW Address: 22:52:cb:df:b2:db (22:52:cb:df:b2:db)
        Port Name: s2-eth1
        Config flags: 0x00000000
            .... .... .... .... .... .... .... ...0 = Port is administratively down: False
            .... .... .... .... .... .... .... ..0. = Disable 802.1D spanning tree on port: False
            .... .... .... .... .... .... .... .0.. = Drop all packets except 802.1D spanning tree packets: False
            .... .... .... .... .... .... .... 0... = Drop received 802.1D STP packets: False
            .... .... .... .... .... .... ...0 .... = Do not include this port when flooding: False
            .... .... .... .... .... .... ..0. .... = Drop packets forwarded to port: False
            .... .... .... .... .... .... .0.. .... = Do not send packet-in msgs for port: False
        State flags: 0x00000000
            .... .... .... .... .... .... .... ...0 = No physical link present: False
        Current features: 0x000000c0
            .... .... .... .... .... .... .... ...0 = 10 Mb half-duplex rate support: False
            .... .... .... .... .... .... .... ..0. = 10 Mb full-duplex rate support: False
            .... .... .... .... .... .... .... .0.. = 100 Mb half-duplex rate support: False
            .... .... .... .... .... .... .... 0... = 100 Mb full-duplex rate support: False
            .... .... .... .... .... .... ...0 .... = 1 Gb half-duplex rate support: False
            .... .... .... .... .... .... ..0. .... = 1 Gb full-duplex rate support: False
            .... .... .... .... .... .... .1.. .... = 10 Gb full-duplex rate support: True
            .... .... .... .... .... .... 1... .... = Copper medium: True
            .... .... .... .... .... ...0 .... .... = Fiber medium: False
            .... .... .... .... .... ..0. .... .... = Auto-negotiation: False
            .... .... .... .... .... .0.. .... .... = Pause: False
            .... .... .... .... .... 0... .... .... = Asymmetric pause: False
        Advertised features: 0x00000000
        Features supported: 0x00000000
        Features advertised by peer: 0x00000000
    Port data 3
        Port number: 2
        HW Address: 32:bd:48:2f:0a:ae (32:bd:48:2f:0a:ae)
        Port Name: s2-eth2
        Config flags: 0x00000000
            .... .... .... .... .... .... .... ...0 = Port is administratively down: False
            .... .... .... .... .... .... .... ..0. = Disable 802.1D spanning tree on port: False
            .... .... .... .... .... .... .... .0.. = Drop all packets except 802.1D spanning tree packets: False
            .... .... .... .... .... .... .... 0... = Drop received 802.1D STP packets: False
            .... .... .... .... .... .... ...0 .... = Do not include this port when flooding: False
            .... .... .... .... .... .... ..0. .... = Drop packets forwarded to port: False
            .... .... .... .... .... .... .0.. .... = Do not send packet-in msgs for port: False
        State flags: 0x00000000
            .... .... .... .... .... .... .... ...0 = No physical link present: False
        Current features: 0x000000c0
            .... .... .... .... .... .... .... ...0 = 10 Mb half-duplex rate support: False
            .... .... .... .... .... .... .... ..0. = 10 Mb full-duplex rate support: False
            .... .... .... .... .... .... .... .0.. = 100 Mb half-duplex rate support: False
            .... .... .... .... .... .... .... 0... = 100 Mb full-duplex rate support: False
            .... .... .... .... .... .... ...0 .... = 1 Gb half-duplex rate support: False
            .... .... .... .... .... .... ..0. .... = 1 Gb full-duplex rate support: False
            .... .... .... .... .... .... .1.. .... = 10 Gb full-duplex rate support: True
            .... .... .... .... .... .... 1... .... = Copper medium: True
            .... .... .... .... .... ...0 .... .... = Fiber medium: False
            .... .... .... .... .... ..0. .... .... = Auto-negotiation: False
            .... .... .... .... .... .0.. .... .... = Pause: False
            .... .... .... .... .... 0... .... .... = Asymmetric pause: False
        Advertised features: 0x00000000
        Features supported: 0x00000000
        Features advertised by peer: 0x00000000

Packet_in
2019 SDN上机第3次作业_第8张图片

OpenFlow 1.0
    .000 0001 = Version: 1.0 (0x01)
    Type: OFPT_PACKET_IN (10)
    Length: 104
    Transaction ID: 0
    Buffer Id: 0xffffffff
    Total length: 86
    In port: 2
    Reason: No matching flow (table-miss flow entry) (0)
    Pad: 00
    Ethernet II, Src: 86:bb:27:6b:90:f3 (86:bb:27:6b:90:f3), Dst: IPv6mcast_ff:6b:90:f3 (33:33:ff:6b:90:f3)
        Destination: IPv6mcast_ff:6b:90:f3 (33:33:ff:6b:90:f3)
            Address: IPv6mcast_ff:6b:90:f3 (33:33:ff:6b:90:f3)
            .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
            .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
        Source: 86:bb:27:6b:90:f3 (86:bb:27:6b:90:f3)
            Address: 86:bb:27:6b:90:f3 (86:bb:27:6b:90:f3)
            .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
            .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
        Type: IPv6 (0x86dd)
    Internet Protocol Version 6, Src: ::, Dst: ff02::1:ff6b:90f3
        0110 .... = Version: 6
        .... 0000 0000 .... .... .... .... .... = Traffic Class: 0x00 (DSCP: CS0, ECN: Not-ECT)
            .... 0000 00.. .... .... .... .... .... = Differentiated Services Codepoint: Default (0)
            .... .... ..00 .... .... .... .... .... = Explicit Congestion Notification: Not ECN-Capable Transport (0)
        .... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
        Payload Length: 32
        Next Header: ICMPv6 (58)
        Hop Limit: 255
        Source: ::
        Destination: ff02::1:ff6b:90f3
    Internet Control Message Protocol v6
        Type: Neighbor Solicitation (135)
        Code: 0
        Checksum: 0x1158 [correct]
        [Checksum Status: Good]
        Reserved: 00000000
        Target Address: fe80::84bb:27ff:fe6b:90f3
        ICMPv6 Option (Nonce)
            Type: Nonce (14)
            Length: 1 (8 bytes)
            Nonce: 038d5264395c

Packet_out
2019 SDN上机第3次作业_第9张图片

OpenFlow 1.0
    .000 0001 = Version: 1.0 (0x01)
    Type: OFPT_PACKET_OUT (13)
    Length: 110
    Transaction ID: 0
    Buffer Id: 0xffffffff
    In port: 2
    Actions length: 8
    Actions type: Output to switch port (0)
    Action length: 8
    Output port: 65531
    Max length: 0
    Ethernet II, Src: 86:bb:27:6b:90:f3 (86:bb:27:6b:90:f3), Dst: IPv6mcast_ff:6b:90:f3 (33:33:ff:6b:90:f3)
        Destination: IPv6mcast_ff:6b:90:f3 (33:33:ff:6b:90:f3)
            Address: IPv6mcast_ff:6b:90:f3 (33:33:ff:6b:90:f3)
            .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
            .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
        Source: 86:bb:27:6b:90:f3 (86:bb:27:6b:90:f3)
            Address: 86:bb:27:6b:90:f3 (86:bb:27:6b:90:f3)
            .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
            .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
        Type: IPv6 (0x86dd)
    Internet Protocol Version 6, Src: ::, Dst: ff02::1:ff6b:90f3
        0110 .... = Version: 6
        .... 0000 0000 .... .... .... .... .... = Traffic Class: 0x00 (DSCP: CS0, ECN: Not-ECT)
            .... 0000 00.. .... .... .... .... .... = Differentiated Services Codepoint: Default (0)
            .... .... ..00 .... .... .... .... .... = Explicit Congestion Notification: Not ECN-Capable Transport (0)
        .... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
        Payload Length: 32
        Next Header: ICMPv6 (58)
        Hop Limit: 255
        Source: ::
        Destination: ff02::1:ff6b:90f3
    Internet Control Message Protocol v6
        Type: Neighbor Solicitation (135)
        Code: 0
        Checksum: 0x1158 [correct]
        [Checksum Status: Good]
        Reserved: 00000000
        Target Address: fe80::84bb:27ff:fe6b:90f3
        ICMPv6 Option (Nonce)
            Type: Nonce (14)
            Length: 1 (8 bytes)
            Nonce: 038d5264395c

h1 ping h2

Packet_in
2019 SDN上机第3次作业_第10张图片

flow_mod
2019 SDN上机第3次作业_第11张图片

2019 SDN上机第3次作业_第12张图片

把控制器从openflow reference改成ovs controller

hello
控制器6633端口(我最高能支持OpenFlow 1.4) ---> 交换机53360端口
2019 SDN上机第3次作业_第13张图片
交换机53360端口(我最高能支持OpenFlow 1.3)--- 控制器6633端口
2019 SDN上机第3次作业_第14张图片
于是双方建立连接,并使用OpenFlow 1.3

Features Request
2019 SDN上机第3次作业_第15张图片

Set Config
2019 SDN上机第3次作业_第16张图片

Features Reply
2019 SDN上机第3次作业_第17张图片

Packet_in
2019 SDN上机第3次作业_第18张图片

OpenFlow 1.3
    Version: 1.3 (0x04)
    Type: OFPT_PACKET_IN (10)
    Length: 132
    Transaction ID: 0
    Buffer ID: OFP_NO_BUFFER (4294967295)
    Total length: 90
    Reason: OFPR_NO_MATCH (0)
    Table ID: 0
    Cookie: 0x0000000000000000
    Match
        Type: OFPMT_OXM (1)
        Length: 12
        OXM field
            Class: OFPXMC_OPENFLOW_BASIC (0x8000)
            0000 000. = Field: OFPXMT_OFB_IN_PORT (0)
            .... ...0 = Has mask: False
            Length: 4
            Value: 2
        Pad: 00000000
    Pad: 0000
    Data
        Ethernet II, Src: 02:52:24:93:af:f0 (02:52:24:93:af:f0), Dst: IPv6mcast_16 (33:33:00:00:00:16)
            Destination: IPv6mcast_16 (33:33:00:00:00:16)
                Address: IPv6mcast_16 (33:33:00:00:00:16)
                .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
                .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
            Source: 02:52:24:93:af:f0 (02:52:24:93:af:f0)
                Address: 02:52:24:93:af:f0 (02:52:24:93:af:f0)
                .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
                .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
            Type: IPv6 (0x86dd)
        Internet Protocol Version 6, Src: ::, Dst: ff02::16
            0110 .... = Version: 6
            .... 0000 0000 .... .... .... .... .... = Traffic Class: 0x00 (DSCP: CS0, ECN: Not-ECT)
                .... 0000 00.. .... .... .... .... .... = Differentiated Services Codepoint: Default (0)
                .... .... ..00 .... .... .... .... .... = Explicit Congestion Notification: Not ECN-Capable Transport (0)
            .... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
            Payload Length: 36
            Next Header: IPv6 Hop-by-Hop Option (0)
            Hop Limit: 1
            Source: ::
            Destination: ff02::16
            IPv6 Hop-by-Hop Option
                Next Header: ICMPv6 (58)
                Length: 0
                [Length: 8 bytes]
                Router Alert
                    Type: Router Alert (0x05)
                        00.. .... = Action: Skip and continue (0)
                        ..0. .... = May Change: No
                        ...0 0101 = Low-Order Bits: 0x05
                    Length: 2
                    Router Alert: MLD (0)
                PadN
                    Type: PadN (0x01)
                        00.. .... = Action: Skip and continue (0)
                        ..0. .... = May Change: No
                        ...0 0001 = Low-Order Bits: 0x01
                    Length: 0
                    PadN: 
        Internet Control Message Protocol v6
            Type: Multicast Listener Report Message v2 (143)
            Code: 0
            Checksum: 0xbf06 [correct]
            [Checksum Status: Good]
            Reserved: 0000
            Number of Multicast Address Records: 1
            Multicast Address Record Changed to exclude: ff02::1:ff93:aff0
                Record Type: Changed to exclude (4)
                Aux Data Len: 0
                Number of Sources: 0
                Multicast Address: ff02::1:ff93:aff0

Packet_out
2019 SDN上机第3次作业_第19张图片

OpenFlow 1.3
    Version: 1.3 (0x04)
    Type: OFPT_PACKET_OUT (13)
    Length: 130
    Transaction ID: 5
    Buffer ID: OFP_NO_BUFFER (4294967295)
    In port: 2
    Actions length: 16
    Pad: 000000000000
    Action
        Type: OFPAT_OUTPUT (0)
        Length: 16
        Port: OFPP_FLOOD (4294967291)
        Max length: 0
        Pad: 000000000000
    Data
        Ethernet II, Src: 02:52:24:93:af:f0 (02:52:24:93:af:f0), Dst: IPv6mcast_16 (33:33:00:00:00:16)
            Destination: IPv6mcast_16 (33:33:00:00:00:16)
                Address: IPv6mcast_16 (33:33:00:00:00:16)
                .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
                .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
            Source: 02:52:24:93:af:f0 (02:52:24:93:af:f0)
                Address: 02:52:24:93:af:f0 (02:52:24:93:af:f0)
                .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
                .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
            Type: IPv6 (0x86dd)
        Internet Protocol Version 6, Src: ::, Dst: ff02::16
            0110 .... = Version: 6
            .... 0000 0000 .... .... .... .... .... = Traffic Class: 0x00 (DSCP: CS0, ECN: Not-ECT)
                .... 0000 00.. .... .... .... .... .... = Differentiated Services Codepoint: Default (0)
                .... .... ..00 .... .... .... .... .... = Explicit Congestion Notification: Not ECN-Capable Transport (0)
            .... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
            Payload Length: 36
            Next Header: IPv6 Hop-by-Hop Option (0)
            Hop Limit: 1
            Source: ::
            Destination: ff02::16
            IPv6 Hop-by-Hop Option
                Next Header: ICMPv6 (58)
                Length: 0
                [Length: 8 bytes]
                Router Alert
                    Type: Router Alert (0x05)
                        00.. .... = Action: Skip and continue (0)
                        ..0. .... = May Change: No
                        ...0 0101 = Low-Order Bits: 0x05
                    Length: 2
                    Router Alert: MLD (0)
                PadN
                    Type: PadN (0x01)
                        00.. .... = Action: Skip and continue (0)
                        ..0. .... = May Change: No
                        ...0 0001 = Low-Order Bits: 0x01
                    Length: 0
                    PadN: 
        Internet Control Message Protocol v6
            Type: Multicast Listener Report Message v2 (143)
            Code: 0
            Checksum: 0xbf06 [correct]
            [Checksum Status: Good]
            Reserved: 0000
            Number of Multicast Address Records: 1
            Multicast Address Record Changed to exclude: ff02::1:ff93:aff0
                Record Type: Changed to exclude (4)
                Aux Data Len: 0
                Number of Sources: 0
                Multicast Address: ff02::1:ff93:aff0

h1 ping h2

Packet_in
2019 SDN上机第3次作业_第20张图片

flow_mod
2019 SDN上机第3次作业_第21张图片

2019 SDN上机第3次作业_第22张图片

2019 SDN上机第3次作业_第23张图片

你可能感兴趣的:(2019 SDN上机第3次作业)