A method for implementing a barrier in a PCI Express-based connection network according to an embodiment of the present invention includes: transmitting a first count value, which is incremented when a DMA operation is performed in a PE (PCI Express) node at a user level, , The kernel level driver compares the second count value, which is a value obtained by incrementing the counter through the interrupt handler each time an interruption is generated after the completion of the DMA data transfer, with the first count value, And if the two values are the same, confirming that all DMA data transfers have been completed. If it is determined that all DMA data transfers have been completed, the kernel level driver instructs other PE nodes to send a door- Wherein the kernel level driver counts each time a barrier is executed, Calculating a first barrier count value by adding the number of other PE nodes except for itself to the barrier count value; and the kernel level driver increments the number of interrupts through an interrupt handler whenever another PE node generates an interrupt Comparing the first interrupt count value with the first barrier count value and waiting until the two values become equal to each other, and if the two values are equal, confirming that the barrier performance of all the PE nodes is completed. According to the present invention, it is possible to achieve extremely high-performance communication such as Infiniband and to reduce the cost.
展开▼