The immune system is able to protect the host from tumor onset, and immune deficienciesare accompanied by an increased risk of cancer. Immunology is one of the fields in biologywhere the role of computational and mathematical modeling and analysis were recognized theearliest, beginning from 60s of the last century. We introduce the two most common methodsin simulating the competition among the immune system, cancers and tumor immunologystrategies: differential equations and rule-based models. Several specific implementationsare presented, describing in details how they work and how they advance or contribute thefield of tumor immunology.