a switch apparatus includes a storage storing a table , the table including rules and actions corresponding to the rules , and a controller including a memory storing instructions , and a processor configured to execute the instructions to receive the rules and the actions from a control apparatus , identify , based on the rules , a received packet , duplicate a part of a header of the identified packet as an additional header when the identified packet includes a target of encapsulation , encapsulate the identified packet by the additional header , and process , based on the actions , the identified packet .