First attempt to implement GBN protocol, still got some problems but
connect command works.