neutron通信原理理解

[[email protected] ~]# ip add show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:85:1d:e7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.163.24/24 brd 192.168.163.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::db2d:c731:89f2:116f/64 scope link tentative dadfailed
       valid_lft forever preferred_lft forever
    inet6 fe80::5611:818:bf5b:1a93/64 scope link tentative dadfailed
       valid_lft forever preferred_lft forever
    inet6 fe80::bef9:3fe8:f63a:4d1/64 scope link tentative dadfailed
       valid_lft forever preferred_lft forever
3: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:85:1d:f1 brd ff:ff:ff:ff:ff:ff
    inet 192.168.41.24/24 brd 192.168.41.255 scope global noprefixroute ens37
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe85:1df1/64 scope link
       valid_lft forever preferred_lft forever
4: ens38: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:85:1d:fb brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe85:1dfb/64 scope link
       valid_lft forever preferred_lft forever
5: ens39: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:85:1d:05 brd ff:ff:ff:ff:ff:ff
6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:4f:d4:8e:50 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever
7: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 1a:f8:6f:11:fa:1a brd ff:ff:ff:ff:ff:ff
8: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d6:ac:ce:d1:e5:40 brd ff:ff:ff:ff:ff:ff
9: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether ba:b6:22:fa:85:4c brd ff:ff:ff:ff:ff:ff
[[email protected] ~]# brctl show
bridge name	bridge id		STP enabled	interfaces
docker0		8000.02424fd48e50	no
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]#
[[email protected] ~]# docker ps
CONTAINER ID        IMAGE                                                                      COMMAND             CREATED             STATUS              PORTS               NAMES
7f030620847a        192.168.41.29:4000/lokolla/centos-source-neutron-openvswitch-agent:5.0.1   "kolla_start"       24 hours ago        Up 7 hours                              neutron_openvswitch_agent
ffce177e751b        192.168.41.29:4000/lokolla/centos-source-openvswitch-vswitchd:5.0.1        "kolla_start"       25 hours ago        Up 7 hours                              openvswitch_vswitchd
3c8f211111de        192.168.41.29:4000/lokolla/centos-source-openvswitch-db-server:5.0.1       "kolla_start"       25 hours ago        Up 7 hours                              openvswitch_db
d03a1603e155        192.168.41.29:4000/lokolla/centos-source-nova-compute:5.0.1                "kolla_start"       25 hours ago        Up 7 hours                              nova_compute
17f01b3d9a5f        192.168.41.29:4000/lokolla/centos-source-nova-libvirt:5.0.1                "kolla_start"       25 hours ago        Up 7 hours                              nova_libvirt
63b8f7c5c077        192.168.41.29:4000/lokolla/centos-source-nova-ssh:5.0.1                    "kolla_start"       25 hours ago        Up 7 hours                              nova_ssh
8a3c6a4b3cc1        192.168.41.29:4000/lokolla/centos-source-iscsid:5.0.1                      "kolla_start"       25 hours ago        Up 7 hours                              iscsid
f9f8dadce6d4        192.168.41.29:4000/lokolla/centos-source-cron:5.0.1                        "kolla_start"       25 hours ago        Up 7 hours                              cron
75f2ae055e66        192.168.41.29:4000/lokolla/centos-source-kolla-toolbox:5.0.1               "kolla_start"       25 hours ago        Up 7 hours                              kolla_toolbox
b92ffb093641        192.168.41.29:4000/lokolla/centos-source-fluentd:5.0.1                     "kolla_start"       25 hours ago        Up 7 hours                              fluentd
[[email protected] ~]# docker exec -it openvswitch_vswitchd /bin/bash
(openvswitch-vswitchd)[[email protected] /]#
(openvswitch-vswitchd)[[email protected] /]#
(openvswitch-vswitchd)[[email protected] /]# ovs-
ovs-appctl          ovs-docker          ovs-dpctl-top       ovs-pki             ovs-vsctl
ovs-bugtool         ovs-dpctl           ovs-ofctl           ovs-testcontroller  ovs-vswitchd
(openvswitch-vswitchd)[[email protected] /]# ovs-vsctl show
ca91a6f7-38c9-4dc0-ad61-287d56efa763
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
(openvswitch-vswitchd)[[email protected] /]# ip net show

network

[[email protected] ~]# ip add show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:2e:b2:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.163.23/24 brd 192.168.163.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::db2d:c731:89f2:116f/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::5611:818:bf5b:1a93/64 scope link tentative noprefixroute dadfailed
       valid_lft forever preferred_lft forever
    inet6 fe80::bef9:3fe8:f63a:4d1/64 scope link tentative noprefixroute dadfailed
       valid_lft forever preferred_lft forever
3: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:2e:b2:39 brd ff:ff:ff:ff:ff:ff
    inet 192.168.41.23/24 brd 192.168.41.255 scope global noprefixroute ens37
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe2e:b239/64 scope link
       valid_lft forever preferred_lft forever
4: ens38: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UP group default qlen 1000
    link/ether 00:0c:29:2e:b2:43 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe2e:b243/64 scope link
       valid_lft forever preferred_lft forever
5: ens39: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:2e:b2:4d brd ff:ff:ff:ff:ff:ff
6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:17:ea:e0:2b brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever
7: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether a6:c6:b7:28:bd:8e brd ff:ff:ff:ff:ff:ff
8: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 12:9d:ca:31:7d:4a brd ff:ff:ff:ff:ff:ff
9: br-ex: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:0c:29:2e:b2:43 brd ff:ff:ff:ff:ff:ff
10: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d6:ae:90:18:34:4a brd ff:ff:ff:ff:ff:ff
[[email protected] ~]# ip net show
qrouter-6ce8a84e-6919-4ee8-99da-4428bec6ca92 (id: 2)
qdhcp-cd0c39e9-b039-428b-b1c8-2b2bf51d9299 (id: 1)
qdhcp-2ed37a4a-44f4-40a2-b20d-679bb9252220 (id: 0)
[[email protected] ~]#
[[email protected] ~]# ip net exec qdhcp-2ed37a4a-44f4-40a2-b20d-679bb9252220 /bin/bash
[[email protected] ~]# ip add show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
15: tap5be024e7-4b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:16:3e:78:92:aa brd ff:ff:ff:ff:ff:ff
    inet 192.168.163.60/24 brd 192.168.163.255 scope global tap5be024e7-4b
       valid_lft forever preferred_lft forever
    inet 169.254.169.254/16 brd 169.254.255.255 scope global tap5be024e7-4b
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe78:92aa/64 scope link
       valid_lft forever preferred_lft forever
[[email protected] ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 tap5be024e7-4b
link-local      0.0.0.0         255.255.0.0     U     0      0        0 tap5be024e7-4b
192.168.163.0   0.0.0.0         255.255.255.0   U     0      0        0 tap5be024e7-4b
[[email protected] ~]#
[[email protected] ~]# exit
exit
[[email protected] ~]# ip net exec qdhcp-cd0c39e9-b039-428b-b1c8-2b2bf51d9299 /bin/bash
[[email protected] ~]# ip add show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
16: tapf7995df2-9b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:16:3e:2c:6e:06 brd ff:ff:ff:ff:ff:ff
    inet 172.16.31.2/24 brd 172.16.31.255 scope global tapf7995df2-9b
       valid_lft forever preferred_lft forever
    inet 169.254.169.254/16 brd 169.254.255.255 scope global tapf7995df2-9b
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe2c:6e06/64 scope link
       valid_lft forever preferred_lft forever
[[email protected] ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 tapf7995df2-9b
link-local      0.0.0.0         255.255.0.0     U     0      0        0 tapf7995df2-9b
172.16.31.0     0.0.0.0         255.255.255.0   U     0      0        0 tapf7995df2-9b
[[email protected] ~]# exit
exit
[[email protected] ~]# ip net exec qrouter-6ce8a84e-6919-4ee8-99da-4428bec6ca92 /bin/bash
[[email protected] ~]# ip add show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
17: qr-127ed992-0f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:16:3e:7c:99:7d brd ff:ff:ff:ff:ff:ff
    inet 172.16.31.1/24 brd 172.16.31.255 scope global qr-127ed992-0f
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe7c:997d/64 scope link
       valid_lft forever preferred_lft forever
18: qg-e6f2b397-b7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:16:3e:4d:74:27 brd ff:ff:ff:ff:ff:ff
    inet 192.168.163.64/24 brd 192.168.163.255 scope global qg-e6f2b397-b7
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe4d:7427/64 scope link
       valid_lft forever preferred_lft forever
[[email protected] ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 qg-e6f2b397-b7
172.16.31.0     0.0.0.0         255.255.255.0   U     0      0        0 qr-127ed992-0f
192.168.163.0   0.0.0.0         255.255.255.0   U     0      0        0 qg-e6f2b397-b7
[[email protected] ~]# exit
exit
[[email protected] ~]# docker ps
CONTAINER ID        IMAGE                                                                      COMMAND             CREATED             STATUS              PORTS               NAMES
3f4f5f497883        192.168.41.29:4000/lokolla/centos-source-neutron-metadata-agent:5.0.1      "kolla_start"       24 hours ago        Up 7 hours                              neutron_metadata_agent
e719e7ccf3d9        192.168.41.29:4000/lokolla/centos-source-neutron-l3-agent:5.0.1            "kolla_start"       24 hours ago        Up 7 hours                              neutron_l3_agent
00ed9978aedf        192.168.41.29:4000/lokolla/centos-source-neutron-dhcp-agent:5.0.1          "kolla_start"       24 hours ago        Up 7 hours                              neutron_dhcp_agent
b6c9604755c6        192.168.41.29:4000/lokolla/centos-source-neutron-openvswitch-agent:5.0.1   "kolla_start"       24 hours ago        Up 7 hours                              neutron_openvswitch_agent
548cdf74e4f1        192.168.41.29:4000/lokolla/centos-source-openvswitch-vswitchd:5.0.1        "kolla_start"       25 hours ago        Up 7 hours                              openvswitch_vswitchd
bf733a2684ab        192.168.41.29:4000/lokolla/centos-source-openvswitch-db-server:5.0.1       "kolla_start"       25 hours ago        Up 7 hours                              openvswitch_db
8def0e569cd2        192.168.41.29:4000/lokolla/centos-source-cron:5.0.1                        "kolla_start"       25 hours ago        Up 7 hours                              cron
efc57c7d96a7        192.168.41.29:4000/lokolla/centos-source-kolla-toolbox:5.0.1               "kolla_start"       25 hours ago        Up 7 hours                              kolla_toolbox
ca4fb2b25079        192.168.41.29:4000/lokolla/centos-source-fluentd:5.0.1                     "kolla_start"       25 hours ago        Up 7 hours                              fluentd
[[email protected] ~]# docker exec -it openvswitch_vswitchd /bin/bash
(openvswitch-vswitchd)[[email protected] /]# ip add show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:2e:b2:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.163.23/24 brd 192.168.163.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::db2d:c731:89f2:116f/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::5611:818:bf5b:1a93/64 scope link tentative noprefixroute dadfailed
       valid_lft forever preferred_lft forever
    inet6 fe80::bef9:3fe8:f63a:4d1/64 scope link tentative noprefixroute dadfailed
       valid_lft forever preferred_lft forever
3: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:2e:b2:39 brd ff:ff:ff:ff:ff:ff
    inet 192.168.41.23/24 brd 192.168.41.255 scope global noprefixroute ens37
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe2e:b239/64 scope link
       valid_lft forever preferred_lft forever
4: ens38: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UP qlen 1000
    link/ether 00:0c:29:2e:b2:43 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20c:29ff:fe2e:b243/64 scope link
       valid_lft forever preferred_lft forever
5: ens39: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:2e:b2:4d brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20d4:2c82:56e4:af65/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 02:42:17:ea:e0:2b brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever
7: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether a6:c6:b7:28:bd:8e brd ff:ff:ff:ff:ff:ff
8: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 12:9d:ca:31:7d:4a brd ff:ff:ff:ff:ff:ff
9: br-ex: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:29:2e:b2:43 brd ff:ff:ff:ff:ff:ff
10: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether d6:ae:90:18:34:4a brd ff:ff:ff:ff:ff:ff
(openvswitch-vswitchd)[[email protected] /]#
(openvswitch-vswitchd)[[email protected] /]# ovs-
ovs-appctl          ovs-docker          ovs-dpctl-top       ovs-pki             ovs-vsctl
ovs-bugtool         ovs-dpctl           ovs-ofctl           ovs-testcontroller  ovs-vswitchd
(openvswitch-vswitchd)[[email protected] /]# ovs-vsctl show
3b585677-a507-446a-802e-b01943548af3
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-int
            Interface br-int
                type: internal
        Port "qr-127ed992-0f"
            tag: 2
            Interface "qr-127ed992-0f"
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "tap5be024e7-4b"
            tag: 1
            Interface "tap5be024e7-4b"
                type: internal
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port "tapf7995df2-9b"
            tag: 2
            Interface "tapf7995df2-9b"
                type: internal
        Port "qg-e6f2b397-b7"
            tag: 1
            Interface "qg-e6f2b397-b7"
                type: internal
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-ex
            Interface br-ex
                type: internal
        Port "ens38"
            Interface "ens38"
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
(openvswitch-vswitchd)[[email protected] /]#
(openvswitch-vswitchd)[[email protected] /]# route
bash: route: command not found
(openvswitch-vswitchd)[[email protected] /]# exit
exit
[[email protected] ~]# 

原文地址:https://www.cnblogs.com/linkenpark/p/9555560.html

时间: 2024-10-20 00:54:24

neutron通信原理理解的相关文章

基于web的IM软件通信原理分析

关于IM(InstantMessaging)即时通信类软件(如微信,QQ),大多数都是桌面应用程序或者native应用较为流行,而网上关于原生IM或桌面IM软件类的通信原理介绍也较多,此处不再赘述.而web端的IM应用,由于浏览器的兼容性以及其固有的“客户端请求服务器处理并响应”的通信模型,造成了要在浏览器中实现一个兼容性较好的IM应用,其通信过程必然是诸多技术的组合,本文的目的就是要详细探讨这些技术并分析其原理和过程. 1.基于web的固有通信方式 浏览器本身作为一个瘦客户端,不具备直接通过系

https 原理理解

一.什么是HTTPS在说HTTPS之前先说说什么是HTTP,HTTP就是我们平时浏览网页时候使用的一种 协议.HTTP协议传输的数据都是未加密的,也就是明文的,因此使用HTTP协议传输隐私信息非常不安全.为了保证这些隐私数据能加密传输,于是网景公司 设计了SSL(Secure Sockets Layer)协议用于对HTTP协议传输的数据进行加密,从而就诞生了HTTPS.SSL目前的版本是3.0,被IETF(Internet Engineering Task Force)定义在RFC 6101中,

Android Binder跨进程通信原理分析

出发前预备子弹 我们知道进程之间,虚拟地址不同,是不能直接通信的,这是一种保护机制.打开任务管理器,查看一下N多的进程,试想一下如果这些进程直接通信会带来什么后果? 而用户空间可以通过System calls(系统回调)与内核空间通信的,如果在内核空间中有一个模块,能够完成数据的转发,那么是不是两个进程就可以通信了呢?如下图: 上面提到一些用户空间.内核空间的概念,用户空间也能大概猜到是什么东西,而内核空间,就知道它是很底层的东西好了.而模块呢,可以简单的理解为实现一个功能的程序或一个硬件电路等

React-Native系列Android——Native与Javascript通信原理(一)

React-Native最核心的是Native与Javascript之间的通信,而且是双向通信,Native层到Javascript层,Javascript层到Native层,虽说是两个方向,但实现上大同小异,我们先从Native层入手,研究一下Native调用Javascript的过程. 1.通信模型 Android应用层的程序语言是Java,React-Native在Native端的框架实现用的也是Java语言,所以实质上是Java与Javascript两种程序语言的调用. 其实这个过程,在

通信原理之OSI七层参考模型(一)

1.什么是计算机网络 谈计算机通信原理当然离不开计算机网络,那么什么是计算机网络.官方定义:计算机网络是由两台或两台以上的计算机通过网络设备连接起来所组成的一个系统,在这个系统中计算机与计算机之间可以进行数据通信.数据共享及协同完成某些数据处理的工作. 其实说白了就是,计算机组成的网络或者说在这个网络系统中有很多计算机,这里的计算机不仅仅指我们的电脑,其实指的是所有在网络中的网络设备,比如手机,平板电脑等. 2.计算机之间如何进行通信 有了计算机等设备,也就得考虑如何连接起来他们,这就是他们之间

深入浅出通信原理笔记

论坛上的帖子连载-深入浅出通信原理是比较不错的技术贴,地址http://bbs.c114.net/forum.php?mod=viewthread&tid=394879&page=0 摘录一下比较有收获的几个部分 1 作者证明,卷积其实代表的就是求两个多项式相乘之后的系数,如果能把信号表示成多项式的形式,那么信号的相乘其实就可以表示成多项式的系数卷积.那能不能呢?答案是肯定的.而且如果x^n最好和n*w0有关,那这样表达式就能表示频域的某些特点.取x=e^j*w*t那么x^n=e^j*n*

27.Socket,TCP,UDP,HTTP基本通信原理

Socket,TCP,UDP,HTTP基本通信原理(摘自百度): TCP.UDP,HTTP 底层通信都是通过 socket 套接字实现 网络上不同的计算机,也可以通信,那么就得使用网络套接字(socket). socket就是在不同计算机之间进行通信的一个抽象. 他工作于TCP/IP协议中应用层和传输层之间的一个抽象  如图所示: 1.Socket 是对 TCP/IP 协议族的一种封装,是应用层与TCP/IP协议族通信的中间软件抽象层.从设计模式的角度看来,Socket其实就是一个门面模式,它把

详细说说Binder通信原理与机制

先上一张Binder 的工作流程图.(如果不清晰,可以 复制图片链接到浏览器 或 保存到本地 查看,我经常都是这样看图的哈) 更多Android高级面试合集放在github上面了(更多面试文档,项目下载,源码)https://github.com/xiangjiana/androids需要更多项目下载,源码的小伙伴可以点击关于我 联系我获取 一开始上手,陌生的东西比较多,But,其实并不复杂.喔,流程图是用 ProcessOn 画的.很棒的在线画图工具. 出发前预备子弹 我们知道进程之间,虚拟地

Web服务器通信原理

Web服务器通信原理 一.基本知识介绍 常见服务器系统 Linux(RedHat.CentOS.Debian.Ubuntu) Windows Server(Windows Serve 2008.Server 2012.Server 2016.Server 2019) MacOS Server-基本没见过 Windows 常见的家用办公系统有Windows 7.Windows10:Windows 服务器系统有Windows Server. Windows和Linux的区别 Windows的路径: