'This function determines the next layer in the protocol stack.
Arguments:
top_layer: the current innermost layer.
Returns:
The next layer'

def next_layer(self, top_layer):

    layer = self._next_layer(top_layer)
    return self.channel.ask('next_layer', layer)
