def compare_2_bin_ips(bin_ip_1, bin_ip_2):
    """
        compare two binary ips

        :param bin_ip_1: the first binary ip address
        :type bin_ip_1: string
        :param bin_ip_2: the second binary ip address
        :type bin_ip_2: string
        :return: -1: the first ip is smaller than the second ip, 0: equal, 1: greater
        :rtype: int
        """
    if bin_ip_1 > bin_ip_2:
        flag = 1
    elif bin_ip_1 < bin_ip_2:
        flag = -1
    else:
        flag = 0
    return flag