Disclosed is a method for generating a house code (HC) in a home network
based on a living network control protocol (LnCP), in which a (HC) having
a small capacity is generated by using a region separation code and a
household separation code and the generated HC is provided to each
household. To this end, in the home network generating a HC for dividing
each household and providing the generated HC to each household, the
method comprises the steps of: generating a portion of the HC as a region
separation code for dividing plural regions; and generating another
portion of the HC as a household separation code for separating
households in each of the plural regions.