LinkLayer:
the purpose of the link layer in the TCP/IPprotocol suite is to send and
receive
(1) IP datagrams for the IP module,
(2) ARP requests and replies for the ARP module
(3) RARP requests and replies for the RARP module. TCP/IP supports
What is the link layer structure in LAN?
Vlan:
How to create a Vlan in linux :
ifconfig eth0 0.0.0.0 up
vconfig eth0 10
ifconfig eth0.10 up
1. The application, the FTP client,calls the function gethostbyname to convert the hostname
(bsdi) into its 32-bit IP address. This function is called a resolver in theDNS (Domain Name System),
which we describe in Chapter 14.This conversion is done using the DNS, or on smaller networks, a
static hosts file (/etc/hosts).
2. The FTP client asks its TCP toestablish a connection with that IP address.
3. TCP sends a connection requestsegment to the remote host by sending an IP datagram to its IP address.
4. If the destination host is on alocally attached network (e.g., Ethernet, token ring, or the other end of a
point-to-point link), the IPdatagram can be sent directly to that host. If the destination host is on a
remote network, the IP routingfunction determines the Internet address of a locally attached next-hop
router to send the IP datagram to.In either case the IP datagram is sent to a host or router on a locally
attached network.
5. Assuming an Ethernet, thesending host must convert the 32-bit IP address into a 48-bit Ethernet
address. A translation is requiredfrom the logical Internet address to its corresponding physical
hardware address. This is thefunction of ARP.
ARP is intended for broadcastnetworks where many hosts or routers are connected to a single network.
6. ARP sends an Ethernet framecalled an ARP request to every host on the network. This is called a
broadcast. We show the broadcast inFigure 4.2 with dashed lines. The ARP request contains the IP
address of the destination host(whose name is bsdi)and is the request "if you are the owner of this IP
address, please respond to me withyour hardware address."
7. The destination host's ARP layerreceives this broadcast, recognizes that the sender is asking for its
hardware address, and replies withan ARP reply. This reply contains the IP address and the
corresponding hardware address.
8. The ARP reply is received andthe IP datagram that forced the ARP request-reply to be exchanged can
now be sent.
9. The IP datagram is sent to the destination host.
Open vSwitch is a production quality, multilayer virtual switch
It is designed to enablemassive network automation through programmatic extension, while stillsupporting standard management interfaces and protocols (e.g. NetFlow, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag).
Support distribution acrossmultiple physical servers
What can OVS do?
Standard 802.1Q VLAN modelwith trunk and access ports
NIC bonding with or withoutLACP on upstream switch
NetFlow, sFlow(R), and mirroring for increased visibility
QoS (Quality of Service)configuration, plus policing
GRE, GRE over IPSEC, VXLAN,and LISP tunneling
802.1ag connectivity faultmanagement
OpenFlow 1.0 plus numerous extensions
Transactional configurationdatabase with C and Python bindings
High-performance forwardingusing a Linux kernel module
What virtualization platform VSwitch can support ?
These platforms contain: KVM, VirtualBox, Xen,Xen Cloud Platform, XenServer.
Where we could get it ?
Just need to install it using “yum install openvswitch”
Git it “ gitgithub.com/horms/openvswitch.git”
Why Openvswitch, not linux bridge?
More simple network isolation, More comprehensive QoS feature, sFlow, like-openflow switch
How to create a vlan access port ?
ovs-vsctl add-br br0
ovs-vsctl add-port br0 eth0
ovs-vsctl add-port br0 tap0 tag=9
How to bond two port as a v-port ?
ovs-vsctl add-br br0
ovs-vsctl add-bond br0 bond0 eth0 eth1