On binary locally repairable codes with distance four

https://doi.org/10.1016/j.ffa.2020.101793Get rights and content

Abstract

We propose a unified construction for binary locally repairable codes (LRCs) with distance four. When there is a binary linear code [n,k,4] without all zero coordinates, we can construct a binary LRC [n,k,4] with very good locality r. Conditions for which these LRCs attain the Cadambe-Mazumdar bound are also presented. We prove that all our LRCs with locality r3 are optimal LRCs, and most of our LRCs with locality r4 can achieve the Cadambe-Mazumdar bound. Especially, if n256, all the constructed distance optimal [n,k,4] LRCs, except 17 codes, can achieve the Cadambe-Mazumdar bound. We also show that six known constructions are covered in our construction, and eight known constructions can be improved by our construction.

Introduction

Locally repairable codes are a family of erasure codes that can recover any code symbol by accessing other survived code symbols. Such codes can be used in distributed storage systems to improve repair efficiency. The concept of codes with locality was introduced by Gopalan et al. [1], Oggier and Datta [2], and Papailiopoulos et al. [3], [4]. For a q-ary linear code C=[n,k,d]q, if for any c=(c1,c2,,cn)C, the i-th code symbol ci can be recovered by accessing no more than ri other code symbols, ci is said to have locality ri. Further, C has locality r if all its symbols have locality at most r, and it is denoted as C=[n,k,d;r]q. If q=2, we write it as C=[n,k,d;r].

In [1], a Singleton-like bound of an [n,k,d;r]q was proved as:dnk+2kr. If r=k, the bound (1) degenerates to the classical Singleton bound. Like the classical Singleton bound, the Singleton-like bound (1) does not take into account the cardinality of the code alphabet size q, and it is not tight in many cases. A bound taking field size into consideration was presented in [5], which is called Cadambe-Mazumdar (CM) bound. This bound says that an [n,k,d;r]q code satisfieskkcm=mintZ+{tr+kopt(q)(nt(r+1),d)}, where kopt(q)(n,d) is the largest possible dimension of a code of length n, for given field size q and minimum distance d. If q=2, kopt(q)(n,d) will be written as kopt(n,d).

Many constructions of LRCs achieving the upper bound of (1) or (2) have been proposed in [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29], [30], [31] and references therein. Among these work, binary LRCs (BLRCs) receive much more attention, since they are easily implemented and no multiplications are needed in encoding, decoding and repair, see [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21].

BLRCs with r=2,3 that meet the CM bound (2) have been constructed by using anti-codes [6]. Authors of [7], [8], [9], [10] proposed constructions of BLRCs with specific parameters by using cyclic codes. Authors of [11], [12], [13], [14], [15], [16], [17] discussed constructions of BLRCs from classical codes and d-optimal codes and obtained many codes meeting the CM bound (2).

In [18], the authors focused on BLRCs with d=4 and locality 1r7. Those BLRCs achieved the bound (1) when r{1,3} and achieved the bound (2) when r{2,4,5,6,7}, all of which satisfy (r+1)|n. They provided a mean-time to data-loss (MTTDL) analysis on their codes and showed that d=4 was sufficient such that the reliability of LRCs surpassed that of the widely used 3-replication method for most practical scenarios. In [15], Rao determined the locality for binary [n,nm,4] codes with 2m2+1n2m1 for 4m9 and showed that all these BLRCs achieved the bound (2).

Hao et al. gave constructions of LRCs from parity check matrices of linear codes in [19] and [20]. In [20], BLRCs achieving the bound (1) were discussed and a class of BLRCs with d=4 and (r+1)|n achieving the bound (2) was also constructed. The authors of [20] claimed that there were only four classes of BLRCs with distance 2 or 4 attaining the bound (1), yet this claim is incomplete. In [21], results of [19] and [20] were further improved, a missing class of BLRCs attaining the bound (1) in [20] was added there. Here, we list BLRCs attaining the bound (1) in [12] and [21], and known BLRCs with distance four in [20], [18] and [15].

Proposition 1 [21], [18], [12]

There are only five classes of [n,k,d;r] LRCs with 2kn2 attaining the Singleton-like bound:

(1) [k+k/r,k,2;r] for 1r<k and r|k;

(2) [k+k/r,k,2;r] for 1r<k and k0(modr);

(3) [2k+2,k,4;1] for k2;

(4) [4l,3l2,4;3] for l2;

(5) [6,3,3;2], [7,3,4;2], [7,4,3;3] and [8,4,4;3].

Proposition 2

There are the following BLRCs with distance four.

(1) ([20]) If r1 and l2, then there are [(r+1)l,rllog2(r+1),4;r] BLRCs attaining the CM bound.

(2) ([15]) If 4m9 and 3×2m3+1n2m1, then there are [n,nm,4;2m2j1] BLRCs for n=2m1j and 0j2m3, these BLRCs achieve the CM bound.

An [n,k,d]q code C is d-optimal if there is no [n,k,d+1]q code. The BLRCs of Proposition 2 (2) are all d-optimal codes. According to [32], the LRCs given in Proposition 1 only include 14 d-optimal codes, namely [2k+2,k,4;1] LRCs for 2k7, [4l,3l2,4;3] LRCs for 2l8 and [7,3,4;2] LRC. The others are not d-optimal codes. There are some d-optimal codes in Proposition 2 (1) when r and l are chosen properly.

To determine the optimality of LRCs, we give the following definition:

Definition

An LRC C =[n,k,d;r] is optimal if it achieves one of the following conditions:

(1) C attains the Singleton-like bound.

(2) C attains the CM bound.

(3) An [n,k,d;r1] LRC does not exist.

Inspired by those constructions in [18], [20] and [15], we will focus on constructing BLRCs with distance four and determine their optimality.

The contribution to this paper is three-fold. Firstly, we determine code length with which an [n,k,4] code exists, then construct [n,k,4;r] LRC with r as small as possible. We also show that our [n,k,4;r] LRCs with 1r3 are all optimal BLRCs. Secondly, we give criterion for which [n,k,4;r] LRCs attain the CM bound with r4, and prove that most of the obtained BLRCs can achieve the CM bound. Finally, for n256, we determine all d-optimal [n,k,4;r] codes that can achieve the CM bound.

The rest of this paper is organized as follows. In the next section, we begin with some preliminaries on linear codes and LRCs, and known results on judging the locality of linear codes. In Section 3, we present our main results on construction of [n,k,4;r] BLRCs, and determine their optimality. Section 4 makes comparison with related results. The last section is the conclusion.

Section snippets

Preliminaries

This section introduces basic concepts on linear codes and some results on locally repairable codes [33], [34], [1], [25]. At first, we give some notations for later use.

(i) Let [n]={1,2,,n}, [a,b]={a,a+1,,b} for ab and [a,b] be called as interval. Denote 1n and 0n as the all-one and all-zero row vectors, whose transpose are denoted as 1nT and 0nT, respectively.

(ii) Denote X1=(0,1), X2=(01010011), X3=(X2X20414), and Xm+1= (XmXm02m12m). It is obvious that the columns of Xm are the 2m

Construction of [n,k,4;r] LRCs and their optimality

In this section, we will give construction of C =[n,k,4;r] code for given parameters [n,k,4] and k2, denote m=nk and call m the check-dimension of C. We always assume that C is a code without all zero coordinates, since a code with all zero coordinates, that is to say, there exists a coordinate which is not covered, cannot be used for local repair.

If m=3, there is only one [4,1,4] code, this code has locality 1. If m=4, according to [12], there are three [n,nm,4] codes without all zero

A comparison with known results

In this section, we will compare our [n,k,4;rn] LRCs with those in [15], [20], [18], [9] and [11]. BLRCs with parameters [n,k,4;ro] obtained in these references are listed in Table 1.

We will show that the following claim holds:

(I) The BLRCs with No.1-No.6 are special cases of our construction.

(II) Some BLRCs with No.7-No.14 can be improved by our construction.

Conclusions and discussions

In this paper, we have investigated construction of [n,k,4] binary LRCs with good locality for all lengths and dimensions. Our constructions are more flexible and can offer wider choices of the code parameters, i.e., code length, dimension, and locality. Although almost all of our codes are optimal BLRCs, there are some codes whose optimality can not be determined. In the future, we will study how to improve the locality of the BLRCs that cannot attain the CM bound or prove their optimality by

CRediT authorship contribution statement

Ruihu Li: Conceptualization, Funding acquisition, Methodology, Writing – original draft, Writing – review & editing. Sen Yang: Software, Validation, Writing – review & editing. Yi Rao: Supervision, Writing – review & editing. Qiang Fu: Funding acquisition, Writing – review & editing.

Acknowledgement

The authors are very grateful to the reviewer and the FFA's Editor, for their detailed comments and suggestions that much improved the presentation and quality of this paper. This work is supported by National Natural Science Foundation of China under Grant No. 11801564 and 11901579.

References (34)

  • Q. Fu et al.

    Locality of optimal binary codes

    Finite Fields Appl.

    (2017)
  • P. Gopalan et al.

    On the locality of codeword symbols

    IEEE Trans. Inf. Theory

    (2012)
  • F. Oggier et al.

    Self-repairing homomorphic codes for distributed storage systems

  • D.S. Papailiopoulos et al.

    Simple regenerating codes: network coding for cloud storage

  • D.S. Papailiopoulos et al.

    Locally repairable codes

    IEEE Trans. Inf. Theory

    (2014)
  • V.R. Cadambe et al.

    Bounds on the size of locally recoverable codes

    IEEE Trans. Inf. Theory

    (2015)
  • N. Silberstein et al.

    Optimal binary locally repairable codes via anticodes

  • S. Goparaju et al.

    Binary cyclic codes that are locally repairable

  • A. Zeh et al.

    Optimal linear and cyclic locally repairable codes over small fields

  • I. Tamo et al.

    Cyclic LRC codes and their subfield subcodes

  • P. Huang et al.

    Cyclic linear binary locally repairable codes

  • P. Huang et al.

    Binary linear locally repairable codes

    IEEE Trans. Inf. Theory

    (2016)
  • A. Wang et al.

    Bounds and constructions for linear locally repairable codes over binary fields

  • J. Ma et al.

    Optimal binary linear locally repairable codes with disjoint repair groups

    SIAM J. Discrete Math.

    (2019)
  • Y. Rao

    Codes for big data storage and application

    (2017)
  • M. Nam et al.

    Binary locally repairable codes with minimum distance at least 6 based on partial t-spreads

    IEEE Commun. Lett.

    (2017)
  • C. Kim et al.

    New constructions of binary and ternary locally repairable codes using cyclic codes

    IEEE Commun. Lett.

    (2018)
  • Cited by (4)

    View full text