Life is a Roller Coaster

December 25, 2007

Manual Convert HEX to BIN/DEC

Filed under: Technical section — adisubrata @ 10:38 PM

Calculator is the simplest way to convert between then.

This post just to memorize how to do manual convert between them.

Hexadecimal is base 16, written using 0-9+ A, B, D, E, F to represent 10-16.

Binary is base 2, written using 0 and 1.

Decimal is base 10, written using 0-9.

DEC to HEX

0×1872 is 750

1872: 16 = 117 :: 0

117 : 16 = 7 :: 5

7:16 = 0 :: 7

HEX to DEC

750 is 0x1872 (1792+80+0)

7*16^2 + 5*16^1 + 0*16^0

7*16^2 = 1792

5*16^1 = 80

0*16^0 = 0

HEX to BIN

0×1872 is 1 1000 0111 0010
0×1 = 0001

0×8 = 1000

0×7 = 0111

0×2 = 0010

BIN to HEX

1100001110010 is 0x1872

0010 =0×2

0111 = 0×7

1000 = 0×8

0001 = 0×1

December 6, 2007

IQ2 PIC’s Traffic Shapping going easy

Filed under: Technical section — adisubrata @ 1:09 AM

IQ is abbreviation of Intelligent Queuing. The main different with another PIC is in the queing process which is all traffic queued process are in the PIC itself.

Shaping rate is supported on logical interface basis (Vlan, DLCI, etc). Usually IQ PIC is used for PE interfaces to serving customer connection using VLAN or DLCI. I don’t see benefit using IQ PIC in the core network (MPLS or BGP upstream) rather than to utilize traffic shaping itself.
What I’m talking here is about traffic shaping which are needed to guarantee the traffic flows between provider and customers. Provider should give guaranteed traffic to all customers which are connected to single GigE interface using VLAN. Let say you have a hundred customer using VLAN, mean that you have a hunder VLAN in single GigE interface. IQ Pic can do traffic shaping directly to interface itself. Configuration are simple like shown below:

enugadi@M7i# show interfaces ge-3/3/0
description interface;
per-unit-scheduler;
vlan-tagging;
unit 0 {
    vlan-id 100;
    family inet {
        address 192.168.1.1/30;
    }
}
unit 1 {
    vlan-id 101;
    family inet {
        address 192.168.1.5/30;
    }
}
enugadi@M7i# show class-of-service
forwarding-classes {
    queue 1 be;
    queue 0 af;
    queue 2 ef;
    queue 3 nc;
}
traffic-control-profiles {
    customer_100k {
        scheduler-map m1;
        guaranteed-rate 50k;
        delay-buffer-rate 100k;
    }
    upstream {
        shaping-rate 300m;
    }
}
interfaces {
    ge-0/0/0 {
        shaping-rate 10m;
        unit 1 {
            output-traffic-control-profile customer_100k;
        }
    }
    ge-0/0/3 {
        shaping-rate 500m;
    }
}
scheduler-maps {
    m1 {
        forwarding-class be scheduler be;
        forwarding-class ef scheduler ef;
        forwarding-class af scheduler af;
        forwarding-class nc scheduler nc;
    }
}
schedulers {
    be1 {
        transmit-rate percent 30;
    }
    ef1 {
        transmit-rate percent 35;
    }
    af1 {
        transmit-rate percent 25;
    }
    nc1 {
        transmit-rate percent 5;
    }
}

From configuration above, you can see there is shaping parameter and guaranteed rate parameter configured in the traffic-control-profiles.
Shaping parameter is called with PIR and guaranteed rate is called with CIR.
You can define specific PIC and CIR for each customer, respectively.
Another approach to do traffic shaping is used rate limit policy which is called with “Policer” in Junos. Both of them has similar function to do rate limit, but the process are really different, IQ PIC doing it in hardware level J, the PIC itself. Another benefit is Hierarchical CoS/QoS supported in the IQ PIC.

Just to give you a clue how to check IQ PIC ASIC components:

iq2(uart)#— hidden—
Output ifd resources
===================
ifd speed bw_remain bw_latent default_ifls latent_ifls total_shaped_bw
– — —– ————————-
128 10000000 7800000 0 0 0 2200000
129 1000000000 1000000000 0 0 0 0
130 1000000000 1000000000 0 0 0 0
131 500000000 500000000 0 0 0 0
ifd guar_bw_remain guar_latent_ifls guar_bw_ifls delay_bw_remain delay_latent_ifls
– ——- ————– ——– ———
128 8900000 0 2 8000000 0
129 1000000000 0 0 1000000000 0
130 1000000000 0 0 1000000000 0
131 500000000 0 0 500000000 0

December 2, 2007

Juniper Books (Legal) – Free Download

Filed under: Sharing, Technical section — adisubrata @ 8:37 PM

Since last year Juniper releasing 4 books for free to download.

Those books were created by Sybex and now officially out of print. Actually you can still buy this book if you interest using hardcopy rather than softcopy. In my experiences, many people doesn’t like to used softcopy version ) .

Most of engineer used this book when they was starting to become Juniper engineer.

http://www.juniper.net/training/certification/books.html

- JNCIA M/T(Download)

- JNCIS M/T (Download)

- JNCIP M/T (Download)

- JNCIE M/T (Download)

Courtesy of Juniper.net

December 1, 2007

Indonesian assets has to be claimed and has recognized by another

Filed under: General — adisubrata @ 8:38 PM

I just browsing some kind of film from www.indowebster.com and found that some of Traditional Indonesian Assets has to be claimed by another.

You can see the Film in Bahasa from this link.

It’s very funny emoticon for me as innocent guy (I’m not politician), because I knew these items which is claimed by another when I was a kid.

In this film, you can see some of item which is claimed and recognized by them.

1. Rasa Sayange song (I learn it in Elementary School, >20 years ago)

2. Angklung (In Elementary school too). I heard from my friend in Bandung that his college has very popular group music and had experience brought Angklung to Europe. How could they claimed it?

3. Rendang (This food is original from Padang Sumatra and really delicious, I like it).

In the last week, many people from Ponorogo (East Java) went to Jakarta. They tried to get clarification from Malaysia Embassy about traditional art from East Java which is claimed by Malaysia, Reog Ponorogo. From documentation and pictures, i have seen only minor changes and simple different between Reog Ponorogo and Reog Malaysia except the badge and Malaysia word at the top of the Reog.

My concern is Indonesia should keep all traditional assets before the others claim and steal it.
I’m not politician and I don’t have any purpose to be sarcastic.

I just someone who cares about Indonesia. Sorry if this post makes you uncomfortable emoticon. Peace

Blog at WordPress.com.