The drunken porter scene is comic relief, and occurs at a time in the play when the audience needs comic relief. But the comic relief of the drunker p