def IpDecimalToBinary(decimal_ip, binary_size=32):
    """
    :param decimal_ip: IPv4 in decimal notation, e.g. 167772161
    :param binary_size: IP size in binary, default is 32 for IPv4
    :return: IPv4 in binary notation, e.g. 00001010000000000000000000000001
    """
    return ('0'*binary_size + bin(decimal_ip)[2:])[-binary_size:]