Friday, June 5, 2015

Compiling protobuf

How to build protobuf

git clone https://github.com/google/protobuf.git
sudo apt-get update
sudo apt-get install autoconf
sudo apt-get install Libtool
./autogen
./configure
make

Build protobuf jars

protoc --java_out=src/main/java -I../src \
     ../src/google/protobuf/descriptor.proto

Wednesday, May 6, 2015

Panamax


  • Panamax is a open source project from Centurylinklabs
  • It provides an user interface to manage docker containers in a host.
  • As i tried now, it comes as a vagrant box image , which has CoreOS + panamax installed on it, few ports are opened to reach out this VM from host
  • Some good are
    • Panamax has a User Interface it lets you see list of containers co-hosted in this VM
    • See stats of containers - hooked up with google/CAdvisor
    • Search docker.io repo for new images - BUT when tried to Add Image it does not work
  • Lot of bad are
    • There are too many github small projects under centurylinklabs and i am not sure what this guys are trying to do? Looks too amateur to me .
    • Code base is too buggy
    • Open Issues are not answered

Docker aka Container management

I am recently playing more with dockers and containers as my job demand it.

Jotting down some useful details here on my learning for general public and for my self records as well.

What is docker?
A Startup company in San Francisco, California , created a simple linux tool to manage linux containers.

Why one need docker?
Like VMWare's virtualization technology is for virtualization .Docker is the answer to provide next generation light weight virtualization technology. Docker is made to ease things out here.

What is a Container?
Container exist for a long time in linux world, it is a instance of another linux inside a linux operating system.

Why we need a Operating System inside another Operating System?
Virtualization is all about making efficient use of  "COMPUTE", "STORAGE" and "NETWORKING" . As new software applications or upgrade are rolled out every second in data centers for modern needs like (social networking, chatting, video, etc... ), a big chunk of compute power is needed. For ease of management of software applications in data centers a smallest possible workload bundle is needed. For which a host ( LINUX OS) should be capable of running multiple smaller guest LINUX OS ( which sounds like the virtual machine concept , but not : containers are super light weight compared to virtual machines.

Tuesday, January 6, 2015

Making sense of SDN

I came across this three part video in youtube, which was recorded back in August 2012, i see it is interesting and useful.






OpenSSL User Interface

An excellent tool for OpenSSL (working version) tool i came across http://sourceforge.net/projects/opensslui/

  • It has a installable windows UI
  • It uses OpenSSL equivalent command to create and manage CA certs, Keys for PKI



References

Network Policy Management

Way too many times we had come across about the complexities with setting up policies / rules in network equipments following their proprietary approaches.

In the end , there is no one-stop-shop ( a CLI or single pane ) to set up this classic multi-vendor problem.

As a simple rule of thumb, a network service policy , when written as words looks like this
"Input trunk + forwarding policy = output truck"

A centralized control traffic management standards is the Open Flow Protocol and managing policies to be applied with distinct network equipment.

An orchestrator project like openstack , drives this thru initiatives like https://wiki.openstack.org/wiki/Congress

Policy Language

The policy language for Congress is Datalog, which is basically SQL but with a syntax that is closer to traditional programming languages. This declarative language was chosen because its semantics are well-known to a broad range of DevOps, yet its syntax is more terse making it better suited for expressing real-world policies. The grammar is given below.
<policy> ::= <rule>*
<rule> ::= <atom> COLONMINUS <literal> (COMMA <literal>)*
<literal> ::= <atom>
<literal> ::= NOT <atom>
<atom> ::= TABLENAME LPAREN <term> (COMMA <term>)* RPAREN
<term> ::= INTEGER | FLOAT | STRING | VARIABLE  

Tuesday, December 23, 2014

GRE Tunnel in OVS

Quick command references to set up GRE tunnel with OVS 


/*Add a bridge br0*/
sudo ovs-vsctl add-br br0

/*Add a temp internal interface to connect to guest VM*/
sudo ovs-vsctl add-port br0 tep0 -- set interface tep0 type=internal



/*set new subnet IP for guest to reach other end of GRE tun*/
sudo ifconfig tep0 192.168.200.20 netmask 255.255.255.0


/*create a GRE(Genric Encapsulation) tunnel interface */
sudo ovs-vsctl add-port br2 gre0 -- set interface gre0 type=gre options:remote_ip=<GRE tunnel endpoint on other hypervisor>

#sudo ovs-vsctl show
3fb59768-6943-496f-8963-2cd2e2935075
    Bridge "br0"
        Port "br0"
            Interface "br0"
                type: internal
        Port "tep0"
            Interface "tep0"
                type: internal
    ovs_version: "2.0.2"

Monday, December 22, 2014

2015 Server Giants and NGN (Next Gen.Networks) - CIMI Blog

Posted: 22 Dec 2014 05:23 AM PST
Next year is going to be pivotal in telecom, because it’s almost surely going to set the stage for the first real evolution of network infrastructure we’ve had since IP convergence twenty years ago.  We’re moving to the “next-generation network” everyone has talked about, but with two differences.  First, this is for real, not just media hype.  Second, this “network” will be notable not for new network technology but for the introduction of non-network technology—software and servers—into networking missions.
Today we begin our review of the network players of 2015 and beyond, focusing on how these companies are likely to fare in the transition to what’s popularly called “NGN”.  As I said in my blog of December 19th, I’m going to begin with the players with the most to gain, the group from which the new powerhouse will emerge if NGN evolution does happen.  That group is the server vendors, and it includes (in alphabetical order) Cisco, Dell, HP, IBM, and Oracle.
The big advantage this group has is that they can expect to make money from any network architecture that relies on hosted functionality.  While it’s often overlooked as a factor in determining market leadership during periods of change, one of the greatest assets a vendor can have is a justification to endure through a long sales cycle.  Salespeople don’t work for free, and companies can’t focus their sales effort on things that aren’t going to add to their profits.  When you have a complicated transformation to drive, you have to be able to make a buck out of the effort.
The challenge that SDN and NFV have posed for the server giants is that the servers that are the financial heart of the SDN/NFV future are part of the plumbing.  “NFVI” or NFV Infrastructure is just what you run management, orchestration, and virtual network functions on.  It’s MANO and VNFs that build the operators’ business case.  So do these server players try to push their own MANO/VNF solutions and risk limiting their participation in the server-hosted future to those wins they get?  Do they sit back to try to maximize their NFVI opportunity and risk not being a part of any of the early deals because they can’t drive the business case?
The vendor who’s taken the “push-for-the-business-case” route most emphatically is HP, whose OpenNFV architecture is the most functionally complete and now is largely delivered as promised.  A good part of HP’s aggression here may be due to the fact that they’re the only player whose NFV efforts are led by a cloud executive, effectively bringing the two initiatives together.  HP also has a partner ecosystem that’s actually enthusiastic and dedicated, not just hanging around to get some good ink.  HP is absolutely a player who could build a business case for NFV, and their OpenDaylight and OpenStack support means they could extend the NGN umbrella over all three of our revolutions—the cloud, SDN, and NFV.  They are also virtually unique in the industry in offering support for legacy infrastructure in their MANO (Director) product.
Their biggest risk is their biggest strength—the scope of what they can do.  You need to have impeccable positioning and extraordinary collateral to make something like NFV, SDN, or cloud infrastructure a practical sell.  Otherwise you ask your sales force to drag people from disinterested spectators to committed customers on their own, which doesn’t happen.  NGN is the classic elephant behind a screen, but it’s a really big elephant with an unprecedentedly complicated anatomy to grope.  Given that they have all the cards to drive the market right now, their biggest risk is delay that gives others a chance to catch up.  Confusion in the buyer space could do that, so HP is committed (whether they know it or not) to being the go-to people on NGN, in order to win it.
The vendors who seem to represent the “sit-back” view?  Everyone else, at this point, but for different reasons.
Cisco’s challenge is that all of the new network technologies are looking like less-than-zero-sum games in a capital spending sense.  As the market leader in IP and Ethernet technologies, Cisco is likely to lose at least as much in network equipment as it could hope to gain in servers.  Certainly they’d need a superb strategy to realize opex efficiency and service agility to moderate their risks, and Cisco has never been a strategic leader—they like “fast-followership” as an approach.
Dell seems to have made an affirmative choice to be an NFVI leader, hoping to be the fair arms merchant and not a combatant in making the business case for NGN.  This may sound like a wimpy choice, but as I’ve noted many times NGN transformation is very complicated.  Dell may reason that a non-network vendor has little chance in driving this evolution, and that if they fielded their own solutions they’d be on the outs with all the network vendors who push evolution along.  Their risks are obvious—the miss the early market and miss chances to differentiate themselves on features.
IBM’s position in NFV is the most ambiguous of any of the giants.  They are clearly expanding their cloud focus, but they sold off their x86 server business to Lenovo and now have far less to gain from the NGN transformation than any of the others in this category.  Their cloud orchestration tools are a strong starting point for a good NFV MANO solution, but they don’t seem interested in promoting the connection.  It’s hard to see why they’d hang back this long and suddenly get religion, and so their position may well stay ambiguous in 2015.
Oracle has, like HP, announced a full-suite NFV strategy, but they’ve yet to deliver on the major MANO element and their commitment doesn’t seem as fervent to me.  Recall that Oracle was criticized for pooh-poohing the cloud, then jumping in when it was clear that there was opportunity to be had.  I think they’re likely doing that with SDN, NFV, and NGN.  What I think makes this strategy a bit less sensible is that Oracle’s server business could benefit hugely from dominance in NFV.  In fact, carrier cloud and NFV could single-handedly propel Oracle into second place in the market (they recently slipped beyond Cisco).  It’s not clear whether Oracle is still waiting for the sign of NFV success, or will jump off their new positioning to make a go at market leadership.
I’m not a fan of the “wait-and-hope” school of marketing, I confess.  That makes me perhaps a secret supporter of action which makes me sympathetic to HP’s approach more than those of the others in this group.  Objectively, I can’t see how anyone can hope to succeed in an equipment market whose explicit goal is to support commodity devices, except on price and with much pain.  If you don’t want stinking margins you want feature differentiation, and features are attributes of higher layers of SDN and NFV and the cloud.  If those differentiating features are out there, only aggression is going to get to them.  If they’re available in 2015 then only naked aggression will do.  So while I think HP is the lead player now even they’ll have to be on top of their game to get the most from NGN evolution.

bee-social