other objects and aspects of the invention will become apparent from the following description of the embodiments with reference to the accompanying drawings , which is set forth hereinafter . fig2 is a block diagram of an mac subsystem in accordance with an embodiment of the present invention . referring to fig2 , the mac subsystem includes an ieee 802 . 2 protocol application layer , an ieee 1394 protocol application layer , an upper layer , an mac layer , an mac software module , an mac hardware module , and a pci interface module . the ieee 802 . 2 protocol application layer transmits data received from the application layer to the mac layer , or transmits data received from the mac layer to the upper layer . the upper layer is configured with utility . the mac software module receives data from the upper layer and generates and stores mac frame , or transmits mac frame received from the physical layer to the upper layer . the mac hardware module determines a transmission timing and transmits the mac frame generated and stored by the mac software module at an appropriate time , or transmits the mac frame received from the physical layer to the mac software module . the pci interface module acts as the transmit / receive queue interface between the mac software module and the mac hardware module . meanwhile , in the method of using the channel resources in the mpa , the transmitter and the receiver reserve the channel resources using the drp during the beacon period . however , there is no description of the criterion , detailed method or procedure for determining an amount of channel resources to be reserved . hereinafter description will be made about the criterion and method when the devices reserve the channel resources . the respective devices transmit their own beacons during the beacon period . at this point , the devices calculate an amount of channel resources to be reserved and transmit it together . as illustrated in fig3 , the superframe in accordance with the present invention includes a beacon transmit period , a data transmit period ( dtp ), and a contention access period ( cap ). the dtp is a period in which data is transmitted through reservation . the cap is an inactive period in which a real transmission does not occur . generally , the inactive period is added to the superframe in the actual system implementation . this addition does not cause great performance degradation . an amount of channel resource reserved by a device i is determined as follows . at this point , “ c ” is a maximum size of the dtp and is a sum of the dtp and the cap . when the device i reserves the channel resource , a reserved amount of all devices except the device i is subtracted from “ c ” and then multiplied by a . the dtp reserved by the device and the inactive period are determined depending on the value of a . the dtp decreases as the value of a increases . the dtp increases as the value of a decreases . a value of t others is a sum of a reserved amount after the device i in a previous superframe and a reserved amount before the device i in a current superframe . that is , a sum of “ a ” and “ b ” in fig8 is t others in an n th superframe . this is expressed as eq . 1 below . the reserved amount of the channel resource of all devices except the device i is accumulated in its own register t others . eq . 2 below is an equation for calculating t i , which is an amount of channel resource to be reserved by the device i . the amount of the channel resource to be reserved by the device i is determined by subtracting t others from the maximum size “ c ” of the dtp and multiplying the resulting value by a rate factor a . t others = ∑ j ≠ i ⁢ ⁢ t j eq . ⁢ 1 t i = α ( c − t others ) eq . 2 a channel resource assignment method in the mesh wpan in accordance with an embodiment of the present invention will be described below in detail . fig4 is a flowchart illustrating a channel resource assignment method for fair channel resource reservation in a mesh wpan in accordance with an embodiment of the present invention . specifically , a process of determining an amount ( t i ) of channel resource to be reserved by the device i is illustrated in fig4 . the process of fig4 is performed during the beacon period . that is , the process is performed at the time point when a new frame ends and the beacon period starts . referring to fig4 , in step s 401 , the device i determines whether a current beacon slot is a beacon slot to be used by the device i itself . in step s 403 , when the beacon slot is a beacon slot for transmitting beacon of other device , an amount of channel resource reserved by other devices is checked and its accumulated amount is stored in the register t others like eq . 1 . then , the process returns to step s 401 . in this manner , while an amount of channel resources reserved by the adjacent devices is accumulated , the beacon slot moves from a state 401 to a state 402 . in step s 402 , an amount of channel resources to be reserved by the device i is calculated using eq . 2 . that is , an amount of cat to be used by the device i is determined . in step s 404 , the device i generates a beacon frame . as illustrated in fig3 , the channel of the device i is inserted into the beacon frame and notified to the adjacent devices . in step s 405 , after transmitting the beacon frame , the device resets the value accumulated in the register t others to zero . in step s 406 , it is determined whether the beacon period of the current superframe is ended . when the beacon slot of the current superframe is not ended , the process returns to step s 401 . on the other hand , when the beacon slot of the current superframe is ended , the process is finished . the amount of the channel resource accumulated in the register t others is maintained and a next superframe is started . the value of the register t others is reset only in the state 405 . fig5 is a flowchart illustrating a channel resource assignment method for guaranteeing qos in a mesh wpan in accordance with an embodiment of the present invention . the processes until the process of determining t i are the same as those of fig4 . referring to fig5 , in step s 501 , the device i determines whether a current beacon slot is a beacon slot of the device i itself . in step s 503 , when the beacon slot is not the beacon slot of the device i , the process proceeds to step s 503 . in step s 503 , an amount accumulated in the register t others is calculated and if the beacon slot becomes the beacon slot of the device i , the process proceeds to step s 502 . like in fig4 , an amount of channel resources to be used by the device i is calculated using eq . 2 . in step s 504 , the result value of eq . 2 is compared with a minimum required amount . the minimum required amount is a minimum amount of channel resource required for satisfying qos of the device i . for example , if a channel time of at least 2000 μs is required in the superframe for video streaming service , a minimum required amount of channel resource is 2000 μs . in step s 505 , when the result of eq . 2 satisfies the minimum required amount in step s 504 , the channel resource is reserved as much as the result of eq . 2 . in step s 506 , when the result of eq . 2 is less than the minimum required amount , the channel resource is reserved as much as the minimum required amount , not the result of eq . 2 . in this case , the device i can always reserve the channel resource of more than the minimum required amount and always guarantee qos of its own services . when the amount of channel resource to be reserved is finally determined in steps s 505 and s 506 , the process proceeds to step s 507 . in step s 507 , the device i generates and transmits its own beacon frame . in step s 508 , a value accumulated in the register t others is reset and the beacon slot of the device i is ended . in step s 509 , it is determined whether the beacon period of the current superframe is ended . when the beacon period of the current superframe is not ended , the process returns to step s 501 and a next beacon slot is processed . on the other hand , when the beacon period of the current superframe is ended , the system is terminated . as described above , the present invention provides the channel resource managing method for channel resource assignment and qos of the respective devices when the ieee 802 . 15 . 3 wpan is configured in the mesh type as illustrated in fig7 . in the mesh wpan that assigns the channel resources to all devices without using the coordinator , the device receives the beacon information of the adjacent device and calculates the channel resources to be used by the device itself . when assigning the channel resources , the respective devices calculate an amount of channel resources using the equation . therefore , the channel resources can be fairly assigned to all the devices . also , the size of the dtp period and the size of the cap period can be adjusted using the change of the value a . in the case of the device to which qos has to be guaranteed , the channel resources can be distributed through the setting of the minimum required amount , while satisfying the minimum required amount . in addition , the present invention can also be applied to the channel resource management when two piconets exist in the same space as illustrated in fig6 . in this case , a range where the beacon can be received and analyzed is defined as a piconet . in fig6 , the devices 1 , 2 and 3 identify different beacons within the same beacon period . the device 4 can receive the beacon of the device 3 , but cannot receive the beacons of the devices 1 and 2 . in this manner , the piconet can be logically configured according to the reception of the beacon . in this environment , two piconets can fairly use the channel resources . in the mesh network of fig7 , the devices 1 to 4 are connected by 1 hop . in this case , all devices can fairly use the channel resources . as described above , the devices can always use the channel resources efficiently in the mesh wpan in which scattered devices are frequently connected and disconnected . that is , the devices can fairly use the channel resources together with the adjacent devices in the mesh wpan . also , qos can be always guaranteed by reserving the channel resources of more than the minimum required amount . the above - described methods in accordance with the present invention can be stored in computer - readable recording media . the computer - readable recording media may include cdrom , ram , rom , floppy disk , hard disk , optical magnetic disk , and so on . since these procedures can be easily carried out by those skilled in the art , a detailed description thereof will be omitted . the present application contains subject matter related to korean patent application no . 2005 - 121143 , filed with the korean intellectual property office on dec . 9 , 2005 , the entire contents of which is incorporated herein by reference . while the present invention has been described with respect to certain preferred embodiments , it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the scope of the invention as defined in the following claims .