public void receive_packet(DuplexLink link, Packet packet)
	{
		int enlace = this.links.get(link);
		RouterBuffer buffer = this.buffers.get(enlace);
		
		packet.decrease_ttl();
		//dropando pacote: buffer lotado ou TTL == 0
		if (buffer.is_full() || packet.getTTL() == 0) 
		{
			if(buffer.is_full()) 
				System.out.println("Buffer's full on port "+ enlace +" from router "+ this.name);
			else 
				System.out.println("Packet "+ packet.getId() + " TTL reached 0 and was dropped.");
			return;	
		}
	
		buffer.put_packet(packet);
		
		//processa pacotes no buffer
		process_buffer();
	}