NGN(next generation network) will be a uniform and integrated netw ork which imports distributed computing and communication technology. NGN h ave multiple kinds of applications and network environment. Middleware for NGN w as studied and practiced. Traditional middleware and mobile middleware were inte grated together to provide uniform platform. End-to-end quality of service tec hn ology, context aware technology and reflective technology were used so as to ach ieve flexible programming model (beyond C/S model) and self-adaptive ability in dynamic environment. NGN middleware can provide applications with different QoS( quality of service) and can minimize the cost for developing, deploying and mana ging network application.