1. 把ExecutorFilter做为chain的第一位, 除非你想获得非常低的延时 2. 使用 ProtocolCodecFilter, 把数据包的含义用java表示 3. 把程序的逻辑放到IoHandler里 4. 在IoSession里存储状态 5. 最低要JDK 5